Parcourir la source

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 il y a 3 mois
Parent
commit
87fffd0a0b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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()