Upload folder using huggingface_hub
Browse files- Dockerfile +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
|
| 16 |
|
| 17 |
# Command to run the Flask app with Gunicorn
|
| 18 |
-
CMD ["gunicorn", "-b", "0.0.0.0:
|
|
|
|
| 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=
|
|
|
|
| 53 |
return jsonify({'error': str(e)}), 400
|
| 54 |
|
| 55 |
if __name__ == "__main__":
|
| 56 |
+
app.run(debug=True, host='0.0.0.0', port=8501)
|