Spaces:
Build error
Build error
Data incompatible with messages format in Gradio_UI.py
Browse files- Gradio_UI.py +2 -4
Gradio_UI.py
CHANGED
|
@@ -297,9 +297,7 @@ How can I assist you today?"""
|
|
| 297 |
)
|
| 298 |
|
| 299 |
with gr.Blocks(fill_height=True) as demo:
|
| 300 |
-
stored_messages = gr.State([
|
| 301 |
-
gr.ChatMessage(role="assistant", content=welcome_message)
|
| 302 |
-
])
|
| 303 |
file_uploads_log = gr.State([])
|
| 304 |
chatbot = gr.Chatbot(
|
| 305 |
label="Agent",
|
|
@@ -310,7 +308,7 @@ How can I assist you today?"""
|
|
| 310 |
),
|
| 311 |
resizeable=True,
|
| 312 |
scale=1,
|
| 313 |
-
value=[
|
| 314 |
)
|
| 315 |
# If an upload folder is provided, enable the upload feature
|
| 316 |
if self.file_upload_folder is not None:
|
|
|
|
| 297 |
)
|
| 298 |
|
| 299 |
with gr.Blocks(fill_height=True) as demo:
|
| 300 |
+
stored_messages = gr.State([])
|
|
|
|
|
|
|
| 301 |
file_uploads_log = gr.State([])
|
| 302 |
chatbot = gr.Chatbot(
|
| 303 |
label="Agent",
|
|
|
|
| 308 |
),
|
| 309 |
resizeable=True,
|
| 310 |
scale=1,
|
| 311 |
+
value=[{"role": "assistant", "content": welcome_message}]
|
| 312 |
)
|
| 313 |
# If an upload folder is provided, enable the upload feature
|
| 314 |
if self.file_upload_folder is not None:
|