Spaces:
Sleeping
Sleeping
Update hardware_qa_assistant_lang_graph_gradio_demo_version_users.py
Browse files
hardware_qa_assistant_lang_graph_gradio_demo_version_users.py
CHANGED
|
@@ -1439,7 +1439,12 @@ def build_gradio_blocks(auth_secret: Optional[str] = None):
|
|
| 1439 |
ocr_backend = gr.Dropdown(choices=["paddle","tesseract","auto"], value=OCR_BACKEND, label="OCR backend")
|
| 1440 |
do_web_search = gr.Checkbox(value=True if tavily else False, label="Use Tavily web search if needed")
|
| 1441 |
|
| 1442 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1443 |
|
| 1444 |
# Uploader + Vision checkbox side-by-side (compact)
|
| 1445 |
|
|
|
|
| 1439 |
ocr_backend = gr.Dropdown(choices=["paddle","tesseract","auto"], value=OCR_BACKEND, label="OCR backend")
|
| 1440 |
do_web_search = gr.Checkbox(value=True if tavily else False, label="Use Tavily web search if needed")
|
| 1441 |
|
| 1442 |
+
|
| 1443 |
+
try:
|
| 1444 |
+
chat = gr.Chatbot(height=560, elem_id="chatui", type="messages")
|
| 1445 |
+
except TypeError:
|
| 1446 |
+
# Gradio 6.5.1: Chatbot has no `type=` kwarg
|
| 1447 |
+
chat = gr.Chatbot(height=560, elem_id="chatui")
|
| 1448 |
|
| 1449 |
# Uploader + Vision checkbox side-by-side (compact)
|
| 1450 |
|