Jelajahi Sumber

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 3 bulan lalu
induk
melakukan
87fffd0a0b
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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()