Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -117,11 +117,17 @@ demo = gr.Interface(
|
|
| 117 |
|
| 118 |
if __name__ == "__main__":
|
| 119 |
print("Starting Gradio server...")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
demo.launch(
|
| 121 |
server_name="0.0.0.0",
|
| 122 |
-
server_port=7860,
|
| 123 |
debug=False,
|
| 124 |
quiet=False,
|
| 125 |
show_error=True,
|
| 126 |
-
prevent_thread_lock=True
|
|
|
|
| 127 |
)
|
|
|
|
| 117 |
|
| 118 |
if __name__ == "__main__":
|
| 119 |
print("Starting Gradio server...")
|
| 120 |
+
|
| 121 |
+
# Optional: small delay can help in some overloaded spaces
|
| 122 |
+
# import time
|
| 123 |
+
# time.sleep(5)
|
| 124 |
+
|
| 125 |
demo.launch(
|
| 126 |
server_name="0.0.0.0",
|
| 127 |
+
# server_port=7860, # ← do NOT set fixed port unless you really need it
|
| 128 |
debug=False,
|
| 129 |
quiet=False,
|
| 130 |
show_error=True,
|
| 131 |
+
prevent_thread_lock=True,
|
| 132 |
+
# inline=False # optional - can help in some cases
|
| 133 |
)
|