Spaces:
Sleeping
Sleeping
adding markownd
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def respond(message, history, cuisine, dietary_restrictions, allergies, preferre
|
|
| 22 |
top_chunks = get_top_chunks(message)
|
| 23 |
top_chunks = top_chunks.append(get_top_chunks(cuisine))
|
| 24 |
top_chunks = top_chunks.append(get_top_chunks(dietary_restrictions))
|
| 25 |
-
top_chunks = top_chunks.append(get_top_chunks(allergies)
|
| 26 |
top_chunks = top_chunks.append(get_top_chunks(preferred_ingredient))
|
| 27 |
context = "\n".join(top_chunks)
|
| 28 |
print (top_chunks)
|
|
@@ -68,7 +68,7 @@ with gr.Blocks(theme=theme) as chatbot:
|
|
| 68 |
show_label=False,
|
| 69 |
show_share_button = False,
|
| 70 |
show_download_button = False)
|
| 71 |
-
gr.Markdown("### 👋 Welcome to BiteBot!\nTell me your preferred **cuisine**, any **dietary restrictions**, and **allergies**, and I’ll help you figure out what to cook. You can ask questions like:\n- _“What should I make tonight?”_\n- _“
|
| 72 |
cuisine=gr.Textbox(label="cuisine")
|
| 73 |
dietary_restrictions=gr.Dropdown(["Gluten-Free","Dairy-Free","Vegan","Vegetarian","Keto","Kosher","No Soy","No Seafood","No Pork","No Beef"], label="dietary restrictions", multiselect=True,info="you can select multiple!")
|
| 74 |
allergies=gr.Textbox(label="allergies")
|
|
|
|
| 22 |
top_chunks = get_top_chunks(message)
|
| 23 |
top_chunks = top_chunks.append(get_top_chunks(cuisine))
|
| 24 |
top_chunks = top_chunks.append(get_top_chunks(dietary_restrictions))
|
| 25 |
+
top_chunks = top_chunks.append(get_top_chunks(allergies))
|
| 26 |
top_chunks = top_chunks.append(get_top_chunks(preferred_ingredient))
|
| 27 |
context = "\n".join(top_chunks)
|
| 28 |
print (top_chunks)
|
|
|
|
| 68 |
show_label=False,
|
| 69 |
show_share_button = False,
|
| 70 |
show_download_button = False)
|
| 71 |
+
gr.Markdown("### 👋 Welcome to BiteBot!\nTell me your preferred **cuisine**, any **dietary restrictions**, and **allergies**, and I’ll help you figure out what to cook. You can ask questions like:\n- _“What should I make tonight?”_\n- _“I'm feeling like eating something spicy.”_\n- _“Give me a recipe extra cheesy”_")
|
| 72 |
cuisine=gr.Textbox(label="cuisine")
|
| 73 |
dietary_restrictions=gr.Dropdown(["Gluten-Free","Dairy-Free","Vegan","Vegetarian","Keto","Kosher","No Soy","No Seafood","No Pork","No Beef"], label="dietary restrictions", multiselect=True,info="you can select multiple!")
|
| 74 |
allergies=gr.Textbox(label="allergies")
|