Skip to content

Commit bf8afa8

Browse files
authored
Merge pull request #558 from marginal23326/fix/gradio-deprecation-warnings
fix: address gradio deprecation warnings
2 parents d1c657f + db4bffb commit bf8afa8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/webui/components/browser_use_agent_tab.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,6 @@ def create_browser_use_agent_tab(webui_manager: WebuiManager):
989989
type="messages",
990990
height=600,
991991
show_copy_button=True,
992-
bubble_full_width=False,
993992
)
994993
user_input = gr.Textbox(
995994
label="Your Task or Response",

src/webui/webui_manager.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ def load_config(self, config_path: str):
104104
for comp_id, comp_val in ui_settings.items():
105105
if comp_id in self.id_to_component:
106106
comp = self.id_to_component[comp_id]
107-
update_components[comp] = comp.__class__(value=comp_val)
107+
if comp.__class__.__name__ == "Chatbot":
108+
update_components[comp] = comp.__class__(value=comp_val, type="messages")
109+
else:
110+
update_components[comp] = comp.__class__(value=comp_val)
108111

109112
config_status = self.id_to_component["load_save_config.config_status"]
110113
update_components.update(

0 commit comments

Comments
 (0)