fix: disable gradio api_info to avoid gradio_client schema crash
Browse files
app.py
CHANGED
|
@@ -14,6 +14,7 @@ def _launch():
|
|
| 14 |
server_port=port,
|
| 15 |
show_error=True,
|
| 16 |
share=False,
|
|
|
|
| 17 |
)
|
| 18 |
|
| 19 |
|
|
|
|
| 14 |
server_port=port,
|
| 15 |
show_error=True,
|
| 16 |
share=False,
|
| 17 |
+
show_api=False,
|
| 18 |
)
|
| 19 |
|
| 20 |
|
mvp.py
CHANGED
|
@@ -1312,7 +1312,7 @@ with gr.Blocks(
|
|
| 1312 |
)
|
| 1313 |
|
| 1314 |
def main():
|
| 1315 |
-
demo.queue(max_size=20).launch(show_error=True, share=False)
|
| 1316 |
|
| 1317 |
|
| 1318 |
if __name__ == "__main__":
|
|
|
|
| 1312 |
)
|
| 1313 |
|
| 1314 |
def main():
|
| 1315 |
+
demo.queue(max_size=20).launch(show_error=True, share=False, show_api=False)
|
| 1316 |
|
| 1317 |
|
| 1318 |
if __name__ == "__main__":
|