dogutcu commited on
Commit
87580f8
·
verified ·
1 Parent(s): f28a9f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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
- 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
 
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