Update app.py
Browse files
app.py
CHANGED
|
@@ -180,14 +180,13 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 180 |
gr.HTML(iframe) # Embed the iframe on the left side
|
| 181 |
gr.HTML(iframe2) # Embed the iframe on the right side
|
| 182 |
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
with gr.
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
| 191 |
|
| 192 |
|
| 193 |
|
|
|
|
| 180 |
gr.HTML(iframe) # Embed the iframe on the left side
|
| 181 |
gr.HTML(iframe2) # Embed the iframe on the right side
|
| 182 |
|
| 183 |
+
# Show the topics on the left side
|
| 184 |
+
with gr.Row():
|
| 185 |
+
with gr.Column():
|
| 186 |
+
question = gr.Textbox(label="You", placeholder="What do you want to talk to CalmBot about?")
|
| 187 |
+
answer = gr.Textbox(label="CalmBot's Response :D", placeholder="CalmBot will respond here..", interactive=False, lines=20)
|
| 188 |
+
submit_button = gr.Button("Submit")
|
| 189 |
+
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
|
|
|
| 190 |
|
| 191 |
|
| 192 |
|