Spaces:
Runtime error
Runtime error
Update web_ui.py
Browse files
web_ui.py
CHANGED
@@ -73,7 +73,6 @@ class WebUI:
|
|
73 |
concurrency_limit: int = 80,
|
74 |
enable_mention: bool = False,
|
75 |
**kwargs):
|
76 |
-
self.run_kwargs = kwargs
|
77 |
|
78 |
from qwen_agent.gui.gradio import gr, mgr
|
79 |
|
@@ -90,7 +89,7 @@ class WebUI:
|
|
90 |
|
91 |
with gr.Row(elem_classes='container'):
|
92 |
with gr.Column(scale=4):
|
93 |
-
chatbot = mgr.Chatbot(value=convert_history_to_chatbot(messages=messages),
|
94 |
avatar_images=[
|
95 |
self.user_config,
|
96 |
self.agent_config_list,
|
@@ -129,7 +128,10 @@ class WebUI:
|
|
129 |
'display': True
|
130 |
}])
|
131 |
|
132 |
-
input = mgr.MultimodalInput(
|
|
|
|
|
|
|
133 |
|
134 |
with gr.Column(scale=1):
|
135 |
if len(self.agent_list) > 1:
|
|
|
73 |
concurrency_limit: int = 80,
|
74 |
enable_mention: bool = False,
|
75 |
**kwargs):
|
|
|
76 |
|
77 |
from qwen_agent.gui.gradio import gr, mgr
|
78 |
|
|
|
89 |
|
90 |
with gr.Row(elem_classes='container'):
|
91 |
with gr.Column(scale=4):
|
92 |
+
chatbot = mgr.Chatbot((value=convert_history_to_chatbot(messages=messages),
|
93 |
avatar_images=[
|
94 |
self.user_config,
|
95 |
self.agent_config_list,
|
|
|
128 |
'display': True
|
129 |
}])
|
130 |
|
131 |
+
input = mgr.MultimodalInput(
|
132 |
+
placeholder=self.input_placeholder,
|
133 |
+
upload_button_props=dict(visible=True) # Changed from False to True
|
134 |
+
)
|
135 |
|
136 |
with gr.Column(scale=1):
|
137 |
if len(self.agent_list) > 1:
|