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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -160,17 +160,19 @@ theme = gr.themes.Monochrome(
160
  )
161
  # Setup the Gradio Blocks interface with custom layout components
162
  with gr.Blocks(theme=theme) as demo:
163
- 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)
164
- gr.Markdown(welcome_message) # Display the formatted welcome message
165
- with gr.Row():
166
- with gr.Column():
167
- gr.Markdown(topics) # Show the topics on the left side
168
  with gr.Row():
169
  with gr.Column():
170
  question = gr.Textbox(label="Your question:", placeholder="What do you want to ask about?")
171
  submit_button = gr.Button("Submit!")
172
  answer = gr.Textbox(label="AI-nswer:", placeholder="AI-nstein will respond here...", interactive=False, lines=10)
173
  submit_button.click(fn=query_model, inputs=question, outputs=answer)
 
 
 
 
 
174
 
175
 
176
  #def display_response(question):
 
160
  )
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):