Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -136,9 +136,9 @@ def streaming_chat(history):
|
|
| 136 |
# Creates A gradio Interface
|
| 137 |
with gr.Blocks(title="Clinical Decision Support System", theme=gr.themes.Base() ) as demo:
|
| 138 |
|
| 139 |
-
Question = gr.Textbox(label="Question", placeholder="Type your question here")
|
| 140 |
-
Langchain = gr.Chatbot(label="Response", height=500)
|
| 141 |
|
|
|
|
|
|
|
| 142 |
Question.submit(add_text, [Langchain, Question], [Langchain, Question]).then(
|
| 143 |
streaming_chat, Langchain, Langchain
|
| 144 |
)
|
|
|
|
| 136 |
# Creates A gradio Interface
|
| 137 |
with gr.Blocks(title="Clinical Decision Support System", theme=gr.themes.Base() ) as demo:
|
| 138 |
|
|
|
|
|
|
|
| 139 |
|
| 140 |
+
Langchain = gr.Chatbot(label="Response", height=500)
|
| 141 |
+
Question = gr.Textbox(label="Question", placeholder="Type your question here")
|
| 142 |
Question.submit(add_text, [Langchain, Question], [Langchain, Question]).then(
|
| 143 |
streaming_chat, Langchain, Langchain
|
| 144 |
)
|