Commit 2061a7a 0 parents commit 2061a7a Copy full SHA for 2061a7a
File tree 5 files changed +477
-0
lines changed
5 files changed +477
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Repo specific
2
+ checkpoints
3
+ generative-models
4
+ outputs
5
+
6
+ # Byte-compiled / optimized / DLL files
7
+ __pycache__ /
8
+ * .py [cod ]
9
+ * $py.class
10
+
11
+ # C extensions
12
+ * .so
13
+
14
+ # Distribution / packaging
15
+ .Python
16
+ build /
17
+ develop-eggs /
18
+ dist /
19
+ downloads /
20
+ eggs /
21
+ .eggs /
22
+ lib /
23
+ lib64 /
24
+ parts /
25
+ sdist /
26
+ var /
27
+ wheels /
28
+ pip-wheel-metadata /
29
+ share /python-wheels /
30
+ * .egg-info /
31
+ .installed.cfg
32
+ * .egg
33
+ MANIFEST
34
+
35
+ # PyInstaller
36
+ # Usually these files are written by a python script from a template
37
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
38
+ * .manifest
39
+ * .spec
40
+
41
+ # Installer logs
42
+ pip-log.txt
43
+ pip-delete-this-directory.txt
44
+
45
+ # Unit test / coverage reports
46
+ htmlcov /
47
+ .tox /
48
+ .nox /
49
+ .coverage
50
+ .coverage. *
51
+ .cache
52
+ nosetests.xml
53
+ coverage.xml
54
+ * .cover
55
+ * .py,cover
56
+ .hypothesis /
57
+ .pytest_cache /
58
+
59
+ # Translations
60
+ * .mo
61
+ * .pot
62
+
63
+ # Django stuff:
64
+ * .log
65
+ local_settings.py
66
+ db.sqlite3
67
+ db.sqlite3-journal
68
+
69
+ # Flask stuff:
70
+ instance /
71
+ .webassets-cache
72
+
73
+ # Scrapy stuff:
74
+ .scrapy
75
+
76
+ # Sphinx documentation
77
+ docs /_build /
78
+
79
+ # PyBuilder
80
+ target /
81
+
82
+ # Jupyter Notebook
83
+ .ipynb_checkpoints
84
+
85
+ # IPython
86
+ profile_default /
87
+ ipython_config.py
88
+
89
+ # pyenv
90
+ .python-version
91
+
92
+ # pipenv
93
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
94
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
95
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
96
+ # install all needed dependencies.
97
+ # Pipfile.lock
98
+
99
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
100
+ __pypackages__ /
101
+
102
+ # Celery stuff
103
+ celerybeat-schedule
104
+ celerybeat.pid
105
+
106
+ # SageMath parsed files
107
+ * .sage.py
108
+
109
+ # Environments
110
+ .env
111
+ .venv
112
+ env /
113
+ venv /
114
+ ENV /
115
+ env.bak /
116
+ venv.bak /
117
+
118
+ # Spyder project settings
119
+ .spyderproject
120
+ .spyproject
121
+
122
+ # Rope project settings
123
+ .ropeproject
124
+
125
+ # mkdocs documentation
126
+ /site
127
+
128
+ # mypy
129
+ .mypy_cache /
130
+ .dmypy.json
131
+ dmypy.json
132
+
133
+ # Pyre type checker
134
+ .pyre /
Original file line number Diff line number Diff line change
1
+ FROM pytorch/pytorch:2.1.1-cuda12.1-cudnn8-runtime
2
+
3
+ WORKDIR /
4
+
5
+ # Install git
6
+ RUN apt-get update && apt-get install -y git git-lfs
7
+
8
+ # Download generative-models repo
9
+ RUN git clone github.com:Stability-AI/generative-models.git
10
+
11
+ # Download checkpoint
12
+ RUN git lfs install
13
+ RUN git clone https://huggingface.co/stabilityai/stable-video-diffusion-img2vid
14
+ RUN mv stable-video-diffusion-img2vid checkpoints
15
+
16
+ # Install python packages.
17
+ RUN pip3 install --upgrade pip
18
+ ADD requirements.txt requirements.txt
19
+ RUN pip3 install -r requirements.txt
20
+
21
+ # Add your model weight files
22
+ # (in this case we have a python script)
23
+ ADD download.py .
24
+ RUN python3 download.py
25
+
26
+ ADD . .
27
+
28
+ EXPOSE 8000
29
+
30
+ CMD python3 -u app.py
Original file line number Diff line number Diff line change
1
+ # My Potassium App
2
+ This is a Potassium HTTP server, created with ` banana init ` CLI
3
+
4
+ ### Testing
5
+ Start a local dev server with ` python3 app.py `
6
+
7
+ ### Deployment
8
+ 1 . Create empty repo on [ Github] ( https://github.com )
9
+ 2 . Push this repo to github
10
+ ```
11
+ git remote add origin https://github.com/{username}/{repo-name}.git
12
+ ```
13
+ 3 . [ Log into Banana] ( https://app.banana.dev/onboard )
14
+ 4 . Select this repo to build and deploy!
You can’t perform that action at this time.
0 commit comments