sophcheng commited on
Commit
cad7c6a
·
verified ·
1 Parent(s): c1ab79c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -161,18 +161,18 @@ theme = gr.themes.Monochrome(
161
  # Setup the Gradio Blocks interface with custom layout components
162
  with gr.Blocks(theme=theme) as demo:
163
  with gr.Row(equal_height=True):
164
- gr.Image("ally.png", container = False, show_share_button = False, show_download_button = False, label="output", show_label=True, elem_id="output_image", scale=0, width=500)
165
- with gr.Row():
 
 
 
 
 
166
  with gr.Column():
167
  question = gr.Textbox(label="Your question:", placeholder="What do you want to ask about?")
168
  submit_button = gr.Button("Submit!")
169
  answer = gr.Textbox(label="AI-nswer:", placeholder="AI-nstein will respond here...", interactive=False, lines=10)
170
  submit_button.click(fn=query_model, inputs=question, outputs=answer)
171
- gr.Markdown(welcome_message) # Display the formatted welcome message
172
- with gr.Row():
173
- with gr.Column():
174
- gr.Markdown(topics) # Show the topics on the left side
175
-
176
 
177
 
178
  #def display_response(question):
 
161
  # Setup the Gradio Blocks interface with custom layout components
162
  with gr.Blocks(theme=theme) as demo:
163
  with gr.Row(equal_height=True):
164
+ with gr.Column():
165
+ gr.Image("ally.png", container = False, show_share_button = False, show_download_button = False, label="output", show_label=True, elem_id="output_image", scale=0, width=500)
166
+ gr.Markdown(welcome_message) # Display the formatted welcome message
167
+ with gr.Row():
168
+ with gr.Column():
169
+ gr.Markdown(topics) # Show the topics on the left side
170
+ with gr.Row():
171
  with gr.Column():
172
  question = gr.Textbox(label="Your question:", placeholder="What do you want to ask about?")
173
  submit_button = gr.Button("Submit!")
174
  answer = gr.Textbox(label="AI-nswer:", placeholder="AI-nstein will respond here...", interactive=False, lines=10)
175
  submit_button.click(fn=query_model, inputs=question, outputs=answer)
 
 
 
 
 
176
 
177
 
178
  #def display_response(question):