Spaces:
Runtime error
Runtime error
Update api.py
Browse files
api.py
CHANGED
|
@@ -127,4 +127,6 @@ def document_count():
|
|
| 127 |
|
| 128 |
|
| 129 |
if __name__ == '__main__':
|
| 130 |
-
|
|
|
|
|
|
|
|
|
| 127 |
|
| 128 |
|
| 129 |
if __name__ == '__main__':
|
| 130 |
+
# Get port from environment variable, default to 5000 for local development
|
| 131 |
+
port = int(os.environ.get('PORT', 5000))
|
| 132 |
+
app.run(debug=True, host='0.0.0.0', port=port)
|