allyyy commited on
Commit
590d9f6
·
verified ·
1 Parent(s): d98315d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -9
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
- with gr.Row(align="center", elem_id="main-row", equal_height=True):
138
-
139
- with gr.Row(align="center"):
140
- with gr.Column(scale=1, min_width=300):
141
- question = gr.Textbox(label="You", placeholder="What do you want to talk to CalmBot about?", lines=2)
142
- answer = gr.Textbox(label="CalmBot's Response :D", placeholder="CalmBot will respond here..", interactive=False, lines=20)
143
- submit_button = gr.Button("Submit")
144
- submit_button.click(fn=query_model, inputs=question, outputs=answer)
 
 
 
 
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)