ryanDing26
commited on
Commit
·
055024d
1
Parent(s):
a666af4
- app.py +2 -1
- histopath/__pycache__/__init__.cpython-311.pyc +0 -0
- histopath/__pycache__/env_desc.cpython-311.pyc +0 -0
- histopath/__pycache__/llm.cpython-311.pyc +0 -0
- histopath/__pycache__/utils.cpython-311.pyc +0 -0
- histopath/agent/__pycache__/__init__.cpython-311.pyc +0 -0
- histopath/agent/__pycache__/agent.cpython-311.pyc +0 -0
- histopath/model/__pycache__/__init__.cpython-311.pyc +0 -0
- histopath/model/__pycache__/retriever.cpython-311.pyc +0 -0
- histopath/tool/__pycache__/__init__.cpython-311.pyc +0 -0
- histopath/tool/__pycache__/support_tools.cpython-311.pyc +0 -0
- histopath/tool/__pycache__/tool_registry.cpython-311.pyc +0 -0
app.py
CHANGED
|
@@ -508,6 +508,7 @@ with gr.Blocks(title="HistoPath Agent", theme=custom_theme, css="""
|
|
| 508 |
with gr.Column(scale=3):
|
| 509 |
chatbot = gr.Chatbot(
|
| 510 |
label="💬 Conversation",
|
|
|
|
| 511 |
height=550,
|
| 512 |
show_label=True,
|
| 513 |
render_markdown=True,
|
|
@@ -602,7 +603,7 @@ with gr.Blocks(title="HistoPath Agent", theme=custom_theme, css="""
|
|
| 602 |
)
|
| 603 |
|
| 604 |
submit_btn.click(
|
| 605 |
-
fn=
|
| 606 |
inputs=[prompt_input, file_upload, chatbot],
|
| 607 |
outputs=[chatbot, output_gallery, data_files, input_image_preview, input_file_preview, status_text]
|
| 608 |
)
|
|
|
|
| 508 |
with gr.Column(scale=3):
|
| 509 |
chatbot = gr.Chatbot(
|
| 510 |
label="💬 Conversation",
|
| 511 |
+
type="messages",
|
| 512 |
height=550,
|
| 513 |
show_label=True,
|
| 514 |
render_markdown=True,
|
|
|
|
| 603 |
)
|
| 604 |
|
| 605 |
submit_btn.click(
|
| 606 |
+
fn=process_agent_response,
|
| 607 |
inputs=[prompt_input, file_upload, chatbot],
|
| 608 |
outputs=[chatbot, output_gallery, data_files, input_image_preview, input_file_preview, status_text]
|
| 609 |
)
|
histopath/__pycache__/__init__.cpython-311.pyc
CHANGED
|
Binary files a/histopath/__pycache__/__init__.cpython-311.pyc and b/histopath/__pycache__/__init__.cpython-311.pyc differ
|
|
|
histopath/__pycache__/env_desc.cpython-311.pyc
CHANGED
|
Binary files a/histopath/__pycache__/env_desc.cpython-311.pyc and b/histopath/__pycache__/env_desc.cpython-311.pyc differ
|
|
|
histopath/__pycache__/llm.cpython-311.pyc
CHANGED
|
Binary files a/histopath/__pycache__/llm.cpython-311.pyc and b/histopath/__pycache__/llm.cpython-311.pyc differ
|
|
|
histopath/__pycache__/utils.cpython-311.pyc
CHANGED
|
Binary files a/histopath/__pycache__/utils.cpython-311.pyc and b/histopath/__pycache__/utils.cpython-311.pyc differ
|
|
|
histopath/agent/__pycache__/__init__.cpython-311.pyc
CHANGED
|
Binary files a/histopath/agent/__pycache__/__init__.cpython-311.pyc and b/histopath/agent/__pycache__/__init__.cpython-311.pyc differ
|
|
|
histopath/agent/__pycache__/agent.cpython-311.pyc
CHANGED
|
Binary files a/histopath/agent/__pycache__/agent.cpython-311.pyc and b/histopath/agent/__pycache__/agent.cpython-311.pyc differ
|
|
|
histopath/model/__pycache__/__init__.cpython-311.pyc
CHANGED
|
Binary files a/histopath/model/__pycache__/__init__.cpython-311.pyc and b/histopath/model/__pycache__/__init__.cpython-311.pyc differ
|
|
|
histopath/model/__pycache__/retriever.cpython-311.pyc
CHANGED
|
Binary files a/histopath/model/__pycache__/retriever.cpython-311.pyc and b/histopath/model/__pycache__/retriever.cpython-311.pyc differ
|
|
|
histopath/tool/__pycache__/__init__.cpython-311.pyc
CHANGED
|
Binary files a/histopath/tool/__pycache__/__init__.cpython-311.pyc and b/histopath/tool/__pycache__/__init__.cpython-311.pyc differ
|
|
|
histopath/tool/__pycache__/support_tools.cpython-311.pyc
CHANGED
|
Binary files a/histopath/tool/__pycache__/support_tools.cpython-311.pyc and b/histopath/tool/__pycache__/support_tools.cpython-311.pyc differ
|
|
|
histopath/tool/__pycache__/tool_registry.cpython-311.pyc
CHANGED
|
Binary files a/histopath/tool/__pycache__/tool_registry.cpython-311.pyc and b/histopath/tool/__pycache__/tool_registry.cpython-311.pyc differ
|
|
|