aashnaj commited on
Commit
b967551
·
verified ·
1 Parent(s): 6aaff45

adding markownd

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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- _“Give me something vegan and Indian.”_\n- _“I’m allergic to nuts—what can I eat?”_")
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")