瀏覽代碼

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 月之前
父節點
當前提交
87fffd0a0b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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()