Spaces:
Runtime error
Runtime error
kcmandable09 commited on
Commit ·
fb2dfae
1
Parent(s): 5f9eebe
fix: use app.run_server for Hugging Face
Browse files
app.py
CHANGED
|
@@ -261,4 +261,5 @@ def update_output(contents, filenames):
|
|
| 261 |
# ------------------- Run -------------------
|
| 262 |
if __name__ == '__main__':
|
| 263 |
port = int(os.environ.get("PORT", 8050))
|
| 264 |
-
|
|
|
|
|
|
| 261 |
# ------------------- Run -------------------
|
| 262 |
if __name__ == '__main__':
|
| 263 |
port = int(os.environ.get("PORT", 8050))
|
| 264 |
+
# Use an official lightweight Python image
|
| 265 |
+
app.run_server(host='0.0.0.0', port=port)
|