Bare launch()
Browse files
app.py
CHANGED
|
@@ -456,13 +456,7 @@ def build_ui() -> gr.Blocks:
|
|
| 456 |
|
| 457 |
|
| 458 |
if __name__ == "__main__":
|
| 459 |
-
#
|
| 460 |
-
#
|
| 461 |
-
#
|
| 462 |
-
|
| 463 |
-
build_ui().launch(
|
| 464 |
-
server_name="0.0.0.0",
|
| 465 |
-
server_port=7860,
|
| 466 |
-
share=False,
|
| 467 |
-
show_api=False,
|
| 468 |
-
)
|
|
|
|
| 456 |
|
| 457 |
|
| 458 |
if __name__ == "__main__":
|
| 459 |
+
# Use bare launch(); HF Spaces auto-detects host/port from env vars.
|
| 460 |
+
# The schema bug that breaks /info is already handled by the
|
| 461 |
+
# gradio_client monkey-patch at the top of this file.
|
| 462 |
+
build_ui().launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|