cindyy3 commited on
Commit
7d198a1
1 Parent(s): a2ca22b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -11,7 +11,7 @@ retrieval_model_name = 'output/sentence-transformer-finetuned/'
11
 
12
  openai.api_key = os.environ["OPENAI_API_KEY"]
13
 
14
- system_message = "You are a restaurant finder chatbot that specializes in providing sustainble restaurants in the Seattle area that accomodate to user-input dietary restrictions and cuisine preferences. The user will input a message in the format 'Could you give me a (cuisine) restaurant with (dietary restriction) options that is (budget) budget?', and you will check the Details About Restaurants dataset to find one restaurant that meets the user's criteria and output its name and restaurant's link."
15
  # Initial system message to set the behavior of the assistant
16
  messages = [{"role": "system", "content": system_message}]
17
 
@@ -118,8 +118,11 @@ topics = """
118
 
119
  - Dietary Restrictions
120
  - Cuisine Preferences (optional)
 
121
  - Budget Preferences (Low: $0 - $20, Moderate: $20 - $30, High: $30+ - per person)
122
 
 
 
123
  """
124
 
125
  # Setup the Gradio Blocks interface with custom layout components
 
11
 
12
  openai.api_key = os.environ["OPENAI_API_KEY"]
13
 
14
+ system_message = "You are a restaurant finder chatbot that specializes in providing sustainble restaurants in the Seattle area that accomodate to user-input dietary restrictions and cuisine preferences. The user will input a message in the format 'Could you give me a (cuisine) restaurant with (dietary restriction) options that is (budget) budget?', and you will check the Details About Restaurants dataset to find one restaurant that meets the user's criteria and output JUST its name and restaurant's link."
15
  # Initial system message to set the behavior of the assistant
16
  messages = [{"role": "system", "content": system_message}]
17
 
 
118
 
119
  - Dietary Restrictions
120
  - Cuisine Preferences (optional)
121
+ - Cuisines: American, Indian, Middle Eastern, Chinese, Italian, Thai, Hawaiian-Korean, Japanese, Ethiopian, Pakistani, Mexican, Ghanaian, Vietnamese, Filipino, Spanish, Turkish
122
  - Budget Preferences (Low: $0 - $20, Moderate: $20 - $30, High: $30+ - per person)
123
 
124
+ Please send your message in the format: "Could you give me a (cuisine) restaurant with (dietary restriction) options that is (budget) budget?"
125
+
126
  """
127
 
128
  # Setup the Gradio Blocks interface with custom layout components