Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,5 +35,6 @@ def ask():
|
|
| 35 |
print(f"Error: {e}")
|
| 36 |
return jsonify({"error": "An error occurred while processing your request."}), 500
|
| 37 |
|
| 38 |
-
if __name__ ==
|
| 39 |
-
|
|
|
|
|
|
| 35 |
print(f"Error: {e}")
|
| 36 |
return jsonify({"error": "An error occurred while processing your request."}), 500
|
| 37 |
|
| 38 |
+
if __name__ == '__main__':
|
| 39 |
+
port = int(os.environ.get('PORT', 7860))
|
| 40 |
+
app.run(host='0.0.0.0', port=port)
|