gracexf commited on
Commit
76d26e0
·
verified ·
1 Parent(s): 459f8ae

adding the image at the top and fixing dropdown

Browse files
Files changed (1) hide show
  1. app.py +15 -9
app.py CHANGED
@@ -150,10 +150,10 @@ def get_top_chunks(query, chunk_embeddings, text_chunks):
150
  return top_chunks
151
 
152
  # theme
153
- custom_theme = gr.themes.Ocean(
154
- primary_hue="yellow",
155
- secondary_hue="yellow",
156
- neutral_hue="rose",
157
  spacing_size="lg",
158
  radius_size="lg",
159
  text_size="lg",
@@ -162,15 +162,21 @@ custom_theme = gr.themes.Ocean(
162
 
163
  about_text = "## About this bot Our bot will tell how to care for your dog's nutrition. Use the chat box on the right to try it out!"
164
 
165
-
166
  with gr.Blocks(theme=custom_theme) as chatbot:
 
 
 
 
 
 
 
167
  with gr.Row(scale=3):
168
  with gr.Column(scale=1):
169
  gr.ChatInterface(respond, type="messages", title = "LLM Chatbox", theme = "gradio/soft")
170
- with gr.Row():
171
- level = gr.Dropdown(choices =
172
- ["Small", "Medium", "Large"], label="Dog Size", info="What is your dog's size?"
173
- )
174
 
175
 
176
  #with gr.Column(scale=1):
 
150
  return top_chunks
151
 
152
  # theme
153
+ custom_theme = gr.themes.Soft(
154
+ primary_hue="purple",
155
+ secondary_hue="purple",
156
+ neutral_hue="blue",
157
  spacing_size="lg",
158
  radius_size="lg",
159
  text_size="lg",
 
162
 
163
  about_text = "## About this bot Our bot will tell how to care for your dog's nutrition. Use the chat box on the right to try it out!"
164
 
 
165
  with gr.Blocks(theme=custom_theme) as chatbot:
166
+ with gr.Row(scale=1):
167
+ gr.Image(
168
+ value="BarkBites.png",
169
+ show_label=False,
170
+ show_share_button = False,
171
+ show_download_button = False
172
+ )
173
  with gr.Row(scale=3):
174
  with gr.Column(scale=1):
175
  gr.ChatInterface(respond, type="messages", title = "LLM Chatbox", theme = "gradio/soft")
176
+ with gr.Row():
177
+ level = gr.Dropdown(choices =
178
+ ["Small", "Medium", "Large"], label="Dog Size", info="What is your dog's size?"
179
+ )
180
 
181
 
182
  #with gr.Column(scale=1):