Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -389,6 +389,6 @@ def seek():
|
|
| 389 |
def health_check():
|
| 390 |
return 'Backend is running!', 200
|
| 391 |
|
| 392 |
-
if __name__ ==
|
| 393 |
-
|
| 394 |
-
app.run(
|
|
|
|
| 389 |
def health_check():
|
| 390 |
return 'Backend is running!', 200
|
| 391 |
|
| 392 |
+
if __name__ == "__main__":
|
| 393 |
+
port = int(os.environ.get("PORT", 7860))
|
| 394 |
+
app.run(host="0.0.0.0", port=port, debug=False)
|