Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -147,9 +147,9 @@ def streaming_chat(history):
|
|
147 |
|
148 |
|
149 |
# Creates A gradio Interface
|
150 |
-
with gr.Blocks(title="Clinical Decision Support System"
|
151 |
Langchain = gr.Chatbot(label="Response", height=500)
|
152 |
-
Question = gr.Textbox(label="Question")
|
153 |
Question.submit(add_text, [Langchain, Question], [Langchain, Question]).then(
|
154 |
streaming_chat, Langchain, Langchain
|
155 |
)
|
|
|
147 |
|
148 |
|
149 |
# Creates A gradio Interface
|
150 |
+
with gr.Blocks(title="Clinical Decision Support System") as demo:
|
151 |
Langchain = gr.Chatbot(label="Response", height=500)
|
152 |
+
Question = gr.Textbox(label="Question",placeholder='What are the symptoms of endocarditis?')
|
153 |
Question.submit(add_text, [Langchain, Question], [Langchain, Question]).then(
|
154 |
streaming_chat, Langchain, Langchain
|
155 |
)
|