Explorar o código

Fix Gradio 6.x compatibility: remove show_api parameter from app.launch() (#1139)

Fixes #1138

Gradio 6.x moved the show_api parameter from the launch() method. This change removes the deprecated parameter to ensure compatibility with Gradio 6.x while maintaining backward compatibility.

The TypeError 'Blocks.launch() got an unexpected keyword argument show_api' has been resolved by removing the parameter from the app.launch() call.
Monish Jagatheswaran hai 3 meses
pai
achega
87fffd0a0b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tools/run_webui.py

+ 1 - 1
tools/run_webui.py

@@ -104,4 +104,4 @@ if __name__ == "__main__":
     inference_fct = get_inference_wrapper(inference_engine)
 
     app = build_app(inference_fct, args.theme)
-    app.launch(show_api=True)
+    app.launch()