Update app.py
Browse files
app.py
CHANGED
@@ -157,12 +157,13 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
|
157 |
with gr.Column():
|
158 |
with gr.Column():
|
159 |
gr.Markdown(topics) # Show the topics on the left side
|
160 |
-
|
161 |
-
with gr.
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
|
|
166 |
|
167 |
|
168 |
# Launch the Gradio app to allow user interaction
|
|
|
157 |
with gr.Column():
|
158 |
with gr.Column():
|
159 |
gr.Markdown(topics) # Show the topics on the left side
|
160 |
+
gr.HTML(display_iframe()) # Embed the iframe on the left side
|
161 |
+
with gr.Row():
|
162 |
+
with gr.Column():
|
163 |
+
question = gr.Textbox(label="Your Request", placeholder="What would you like to talk about?")
|
164 |
+
answer = gr.Textbox(label="CalmConnect's Response", placeholder="CalmConnect will respond here...", interactive=False, lines=10)
|
165 |
+
submit_button = gr.Button("Submit")
|
166 |
+
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
167 |
|
168 |
|
169 |
# Launch the Gradio app to allow user interaction
|