Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -137,13 +137,13 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 137 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
| 138 |
|
| 139 |
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
|
| 148 |
demo.launch()
|
| 149 |
|
|
|
|
| 137 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
| 138 |
|
| 139 |
|
| 140 |
+
# Show the topics on the left side
|
| 141 |
+
with gr.Row():
|
| 142 |
+
with gr.Column():
|
| 143 |
+
question = gr.Textbox(label="You", placeholder="What do you want to talk to CalmBot about?")
|
| 144 |
+
answer = gr.Textbox(label="CalmBot's Response :D", placeholder="CalmBot will respond here..", interactive=False, lines=20)
|
| 145 |
+
submit_button = gr.Button("Submit")
|
| 146 |
+
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
| 147 |
|
| 148 |
demo.launch()
|
| 149 |
|