Aarnaburji commited on
Commit
4b14b2d
·
verified ·
1 Parent(s): 8e8259e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -12
app.py CHANGED
@@ -150,22 +150,23 @@ STARS = gr.themes.Base().set(
150
  button_primary_background_fill='#2A628F', # Primary button background color (medium blue)
151
  )
152
 
 
 
 
153
  # Setup the Gradio Blocks interface with custom layout components
154
  with gr.Blocks(theme=STARS) as demo:
155
- def display_title():
156
- return path_to_la_image
157
- gr.Image(display_title(), show_label = False, show_share_button = False, show_download_button = False)
158
- gr.Markdown(welcome_message) # Display the formatted welcome message
159
- with gr.Row():
160
- with gr.Column():
161
- gr.Markdown(topics) # Show the topics on the left side
162
  with gr.Row():
163
  with gr.Column():
164
- question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
165
- answer = gr.Textbox(label="StarFinder Response", placeholder="StarFinder will respond here...", interactive=False, lines=10)
166
- image_output = gr.Image(label="Image Output") # Add an Image component
167
- submit_button = gr.Button("Submit")
168
- submit_button.click(fn=query_model, inputs=question, outputs=[answer, image_output]) # Update outputs to include the image component
 
 
 
169
 
170
  # Launch the Gradio app to allow user interaction
171
  demo.launch(share=True)
 
150
  button_primary_background_fill='#2A628F', # Primary button background color (medium blue)
151
  )
152
 
153
+ def display_title():
154
+ return "https://huggingface.co/spaces/Starfinders/Stars/resolve/main/sacramento.png"
155
+
156
  # Setup the Gradio Blocks interface with custom layout components
157
  with gr.Blocks(theme=STARS) as demo:
158
+ gr.Image(display_title(), show_label = False, show_share_button = False, show_download_button = False)
159
+ gr.Markdown(welcome_message) # Display the formatted welcome message
 
 
 
 
 
160
  with gr.Row():
161
  with gr.Column():
162
+ gr.Markdown(topics) # Show the topics on the left side
163
+ with gr.Row():
164
+ with gr.Column():
165
+ question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
166
+ answer = gr.Textbox(label="StarFinder Response", placeholder="StarFinder will respond here...", interactive=False, lines=10)
167
+ image_output = gr.Image(label="Image Output") # Add an Image component
168
+ submit_button = gr.Button("Submit")
169
+ submit_button.click(fn=query_model, inputs=question, outputs=[answer, image_output]) # Update outputs to include the image component
170
 
171
  # Launch the Gradio app to allow user interaction
172
  demo.launch(share=True)