Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -348,5 +348,10 @@ with gr.Blocks(css=css, title="Time Stream", show_api=False) as demo:
|
|
348 |
)
|
349 |
|
350 |
if __name__ == "__main__":
|
351 |
-
#
|
352 |
-
|
|
|
|
|
|
|
|
|
|
|
|
348 |
)
|
349 |
|
350 |
if __name__ == "__main__":
|
351 |
+
# Disable the OpenAPI endpoint by setting enable_api=False for newer Gradio
|
352 |
+
# (If you have an older version that accepts show_api=False here, use that instead)
|
353 |
+
demo.launch(
|
354 |
+
server_name="0.0.0.0",
|
355 |
+
server_port=7860,
|
356 |
+
enable_api=False
|
357 |
+
)
|