cindywqng commited on
Commit
600e2c6
·
verified ·
1 Parent(s): fb08817

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
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
- with gr.Column():
161
- with gr.Column():
162
- question = gr.Textbox(label="Your Request", placeholder="What would you like to talk about?")
163
- answer = gr.Textbox(label="CalmConnect's Response", placeholder="CalmConnect will respond here...", interactive=False, lines=10)
164
- submit_button = gr.Button("Submit")
165
- submit_button.click(fn=query_model, inputs=question, outputs=answer)
 
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