Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -137,12 +137,12 @@ with gr.Blocks(theme='gradio/seafoam') as demo:
|
|
137 |
with gr.Column():
|
138 |
gr.Markdown(topics) # Show the topics on the left side
|
139 |
gr.HTML(display_iframe()) # Embed the iframe on the left side
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
|
147 |
|
148 |
# Launch the Gradio app to allow user interaction
|
|
|
137 |
with gr.Column():
|
138 |
gr.Markdown(topics) # Show the topics on the left side
|
139 |
gr.HTML(display_iframe()) # Embed the iframe on the left side
|
140 |
+
with gr.Row():
|
141 |
+
with gr.Column():
|
142 |
+
question = gr.Textbox(label="Your question", placeholder="What would you like to know?")
|
143 |
+
answer = gr.Textbox(label="CompBot Response", placeholder="CompBot will respond here...", interactive=False, lines=10)
|
144 |
+
submit_button = gr.Button("Submit")
|
145 |
+
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
146 |
|
147 |
|
148 |
# Launch the Gradio app to allow user interaction
|