Spaces:
Running
on
Zero
Running
on
Zero
resolve deps
Browse files- Dockerfile +2 -2
- app.py +1 -3
Dockerfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
|
2 |
-
FROM python: 3.
|
3 |
WORKDIR / code
|
4 |
COPY /requirements.txt / code/requirements.txt
|
5 |
RUN pip install --no-cache-dir --upgrade -r / code/requirements.txt
|
6 |
COPY . .
|
7 |
-
CMD ["gunicorn", "
|
|
|
1 |
|
2 |
+
FROM python: 3.10
|
3 |
WORKDIR / code
|
4 |
COPY /requirements.txt / code/requirements.txt
|
5 |
RUN pip install --no-cache-dir --upgrade -r / code/requirements.txt
|
6 |
COPY . .
|
7 |
+
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
|
app.py
CHANGED
@@ -266,6 +266,4 @@ def generate():
|
|
266 |
return jsonify({'gifs': filtered_gifs, 'prompt': prompt})
|
267 |
|
268 |
if __name__ == '__main__':
|
269 |
-
|
270 |
-
|
271 |
-
app.run(debug=True)
|
|
|
266 |
return jsonify({'gifs': filtered_gifs, 'prompt': prompt})
|
267 |
|
268 |
if __name__ == '__main__':
|
269 |
+
app.run(host="0.0.0.0", port=7860, debug=True)
|
|
|
|