Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -176,7 +176,7 @@ theme = gr.themes.Monochrome(
|
|
| 176 |
# Setup the Gradio Blocks interface with custom layout components
|
| 177 |
with gr.Blocks(theme=theme) as demo:
|
| 178 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
| 179 |
-
with gr.
|
| 180 |
with gr.Column():
|
| 181 |
gr.Markdown(topics) # Show the topics on the left side
|
| 182 |
gr.HTML(display_iframe()) # Embed the iframe on the left side
|
|
@@ -186,7 +186,9 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 186 |
answer = gr.Textbox(label="CalmConnect's Response", placeholder="CalmConnect will respond here...", interactive=False, lines=17)
|
| 187 |
submit_button = gr.Button("Submit")
|
| 188 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
| 189 |
-
|
|
|
|
|
|
|
| 190 |
|
| 191 |
# Launch the Gradio app to allow user interaction
|
| 192 |
demo.launch(share=True)
|
|
|
|
| 176 |
# Setup the Gradio Blocks interface with custom layout components
|
| 177 |
with gr.Blocks(theme=theme) as demo:
|
| 178 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
| 179 |
+
with gr.Row():
|
| 180 |
with gr.Column():
|
| 181 |
gr.Markdown(topics) # Show the topics on the left side
|
| 182 |
gr.HTML(display_iframe()) # Embed the iframe on the left side
|
|
|
|
| 186 |
answer = gr.Textbox(label="CalmConnect's Response", placeholder="CalmConnect will respond here...", interactive=False, lines=17)
|
| 187 |
submit_button = gr.Button("Submit")
|
| 188 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
| 189 |
+
with gr.Row():
|
| 190 |
+
demo.launch()
|
| 191 |
+
|
| 192 |
|
| 193 |
# Launch the Gradio app to allow user interaction
|
| 194 |
demo.launch(share=True)
|