lively06 commited on
Commit
0668f4c
·
1 Parent(s): eb2f4f7
Files changed (3) hide show
  1. Dockerfile +1 -1
  2. __pycache__/app.cpython-312.pyc +0 -0
  3. app.py +4 -0
Dockerfile CHANGED
@@ -25,4 +25,4 @@ WORKDIR $HOME/app
25
  COPY --chown=user . $HOME/app
26
 
27
  # Start the FastAPI app on port 7860, the default port expected by Spaces
28
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
25
  COPY --chown=user . $HOME/app
26
 
27
  # Start the FastAPI app on port 7860, the default port expected by Spaces
28
+ CMD ["gunicorn" "-k" " uvicorn.workers.UvicornWorker" "app:app"]
__pycache__/app.cpython-312.pyc ADDED
Binary file (5.4 kB). View file
 
app.py CHANGED
@@ -287,5 +287,9 @@ def predict():
287
  return render_template('home.html',predictions='You will have to Pay approx Rs. {}'.format(output))
288
 
289
 
 
 
 
 
290
  if __name__ == '__main__':
291
  app.run(debug=True)
 
287
  return render_template('home.html',predictions='You will have to Pay approx Rs. {}'.format(output))
288
 
289
 
290
+ elif request.method == 'GET':
291
+ return render_template('home.html')
292
+
293
+
294
  if __name__ == '__main__':
295
  app.run(debug=True)