Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -348,10 +348,8 @@ with gr.Blocks(css=css, title="Time Stream", show_api=False) as demo:
|
|
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 |
)
|
|
|
348 |
)
|
349 |
|
350 |
if __name__ == "__main__":
|
|
|
|
|
351 |
demo.launch(
|
352 |
server_name="0.0.0.0",
|
353 |
server_port=7860,
|
354 |
+
enable_api=False # Use enable_api=False if you want to hide API docs
|
355 |
)
|