camphong24032002 commited on
Commit
79915ba
1 Parent(s): a53b988
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. app.py +0 -4
Dockerfile CHANGED
@@ -23,4 +23,4 @@ RUN chown -R 1000:1000 /code
23
 
24
  USER 1000
25
 
26
- CMD ["gunicorn", "-w", "4", "app:app"]
 
23
 
24
  USER 1000
25
 
26
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
app.py CHANGED
@@ -68,7 +68,3 @@ def get_chat_response(text):
68
  top_n = 3
69
  sort_idx = results.argsort(descending=True, axis=1)[0][:top_n]
70
  return df.iloc[sort_idx]
71
-
72
-
73
- if __name__ == "__main__":
74
- app.run()
 
68
  top_n = 3
69
  sort_idx = results.argsort(descending=True, axis=1)[0][:top_n]
70
  return df.iloc[sort_idx]