mirror of
https://github.com/browser-use/web-ui.git
synced 2026-03-22 11:17:17 +08:00
Merge pull request #558 from marginal23326/fix/gradio-deprecation-warnings
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",
|
type="messages",
|
||||||
height=600,
|
height=600,
|
||||||
show_copy_button=True,
|
show_copy_button=True,
|
||||||
bubble_full_width=False,
|
|
||||||
)
|
)
|
||||||
user_input = gr.Textbox(
|
user_input = gr.Textbox(
|
||||||
label="Your Task or Response",
|
label="Your Task or Response",
|
||||||
|
|||||||
@@ -104,7 +104,10 @@ class WebuiManager:
|
|||||||
for comp_id, comp_val in ui_settings.items():
|
for comp_id, comp_val in ui_settings.items():
|
||||||
if comp_id in self.id_to_component:
|
if comp_id in self.id_to_component:
|
||||||
comp = self.id_to_component[comp_id]
|
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"]
|
config_status = self.id_to_component["load_save_config.config_status"]
|
||||||
update_components.update(
|
update_components.update(
|
||||||
|
|||||||
Reference in New Issue
Block a user