Hmrishav commited on
Commit
259f45b
1 Parent(s): 76a9e88

resolve deps

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. app.py +1 -3
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
 
2
- FROM python: 3.9
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", "-b", "0.0.0.1:5000", "main:app"]
 
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)