Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -134,14 +134,18 @@ theme = gr.themes.Default(
|
|
| 134 |
with gr.Blocks(theme=theme) as demo:
|
| 135 |
|
| 136 |
# Centering the content using Gradio Rows and Columns
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
|
| 146 |
# Launch the Gradio app to allow user interaction
|
| 147 |
-
demo.launch(share=True)
|
|
|
|
| 134 |
with gr.Blocks(theme=theme) as demo:
|
| 135 |
|
| 136 |
# Centering the content using Gradio Rows and Columns
|
| 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 |
|
| 150 |
# Launch the Gradio app to allow user interaction
|
| 151 |
+
demo.launch(share=True)
|