ariel79 commited on
Commit
aba1edc
·
verified ·
1 Parent(s): 1b57206

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -166,18 +166,18 @@ theme = gr.themes.Monochrome(
166
 
167
  # Setup the Gradio Blocks interface with custom layout components
168
  with gr.Blocks(theme=theme) as demo:
169
- # Setup the Gradio Blocks interface with custom layout components
170
- gr.Image("ally.png", show_label = False, show_share_button = False, show_download_button = False, scale=0, width=400)
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
- with gr.Row():
176
- with gr.Column():
177
- question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
178
- submit_button = gr.Button("Submit")
179
- answer = gr.Textbox(label="AI-nstein Response", placeholder="AI-nstein will respond here...", interactive=False, lines=10)
180
- submit_button.click(fn=query_model, inputs=question, outputs=answer)
 
181
 
182
 
183
  #def display_response(question):
 
166
 
167
  # Setup the Gradio Blocks interface with custom layout components
168
  with gr.Blocks(theme=theme) as demo:
169
+ gr.Image(display_image(), container = False, show_share_button = False, show_download_button = False, label="output", show_label=True, elem_id="output_image")
170
+ gr.Markdown(welcome_message) # Display the formatted welcome message
 
171
  with gr.Row():
172
  with gr.Column():
173
  gr.Markdown(topics) # Show the topics on the left side
174
+ gr.HTML(display_iframe()) # Embed the iframe on the left side
175
+ with gr.Row():
176
+ with gr.Column():
177
+ question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
178
+ submit_button = gr.Button("Submit")
179
+ answer = gr.Textbox(label="AI-nstein Response", placeholder="AI-nstein will respond here...", interactive=False, lines=10)
180
+ submit_button.click(fn=query_model, inputs=question, outputs=answer)
181
 
182
 
183
  #def display_response(question):