Spaces:
Sleeping
Sleeping
adding the image at the top and fixing dropdown
Browse files
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.
|
| 154 |
-
primary_hue="
|
| 155 |
-
secondary_hue="
|
| 156 |
-
neutral_hue="
|
| 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 |
-
|
| 171 |
-
|
| 172 |
-
|
| 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):
|