RajendrakumarPachaiappan commited on
Commit
d4b1ea9
·
verified ·
1 Parent(s): 1883f17

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. app.py +1 -1
Dockerfile CHANGED
@@ -12,7 +12,7 @@ RUN pip install --no-cache-dir -r requirements.txt
12
  RUN pip install gunicorn # Ensure Gunicorn is installed
13
 
14
  # Expose port for Flask app
15
- EXPOSE 8502
16
 
17
  # Command to run the Flask app with Gunicorn
18
- CMD ["gunicorn", "-b", "0.0.0.0:8502", "app:app"]
 
12
  RUN pip install gunicorn # Ensure Gunicorn is installed
13
 
14
  # Expose port for Flask app
15
+ EXPOSE 8501
16
 
17
  # Command to run the Flask app with Gunicorn
18
+ CMD ["gunicorn", "-b", "0.0.0.0:8501", "app:app"]
app.py CHANGED
@@ -53,4 +53,4 @@ def predict():
53
  return jsonify({'error': str(e)}), 400
54
 
55
  if __name__ == "__main__":
56
- app.run(debug=True, host='0.0.0.0', port=8502)
 
53
  return jsonify({'error': str(e)}), 400
54
 
55
  if __name__ == "__main__":
56
+ app.run(debug=True, host='0.0.0.0', port=8501)