mirror of
https://github.com/browser-use/web-ui.git
synced 2026-03-22 11:17:17 +08:00
fix: address gradio deprecation warnings
This commit is contained in:
@@ -989,7 +989,6 @@ def create_browser_use_agent_tab(webui_manager: WebuiManager):
|
||||
type="messages",
|
||||
height=600,
|
||||
show_copy_button=True,
|
||||
bubble_full_width=False,
|
||||
)
|
||||
user_input = gr.Textbox(
|
||||
label="Your Task or Response",
|
||||
|
||||
@@ -104,7 +104,10 @@ class WebuiManager:
|
||||
for comp_id, comp_val in ui_settings.items():
|
||||
if comp_id in self.id_to_component:
|
||||
comp = self.id_to_component[comp_id]
|
||||
update_components[comp] = comp.__class__(value=comp_val)
|
||||
if comp.__class__.__name__ == "Chatbot":
|
||||
update_components[comp] = comp.__class__(value=comp_val, type="messages")
|
||||
else:
|
||||
update_components[comp] = comp.__class__(value=comp_val)
|
||||
|
||||
config_status = self.id_to_component["load_save_config.config_status"]
|
||||
update_components.update(
|
||||
|
||||
Reference in New Issue
Block a user