skoneru commited on
Commit
41a6188
·
verified ·
1 Parent(s): 116a743

More Prompt Tuning

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -123,7 +123,7 @@ def reply_bot(message, history):
123
 
124
  client = InferenceClient(model="https://8cc9-141-3-25-29.ngrok-free.app")
125
 
126
- system_prompt = "<s>[INST] <<SYS>>\nYou are multilingual chat bot that helps deciding what to eat in a german canteen. In the canteen, there are different lines with names. Based on the menu and question, you suggest the user which line they should go to. You respond really briefly and do not generate long responses.\n<</SYS>>\n\nMenu:\n" + menu + "\n"
127
 
128
  curr_prompt = system_prompt + message + " [/INST]"
129
  if len(history) != 0:
@@ -132,7 +132,7 @@ def reply_bot(message, history):
132
 
133
  curr_prompt = system_prompt + message + " [/INST]"
134
  else:
135
- curr_prompt = "<s>[INST] <<SYS>>\nYou are multilingual chat bot that helps deciding what to eat ina german canteen. In the canteen there are different lines with names. Based on the menu and question, you suggest the user which line they should go to. You respond really briefly and do not generate long responses. You respond in the same language user talks to you\n<</SYS>>\n\nMenu:\n" + menu + "\n" + message + " [/INST]"
136
 
137
  try:
138
  print(curr_prompt)
 
123
 
124
  client = InferenceClient(model="https://8cc9-141-3-25-29.ngrok-free.app")
125
 
126
+ system_prompt = "<s>[INST] <<SYS>>\nYou are multilingual chat bot that helps deciding what to eat in a german canteen. In the canteen, there are different lines with names and each line may offer several food people can choose from or only one. Based on the menu and question, you suggest the user which line they should go to. You respond really briefly and do not generate long responses. You can only suggest them from the menu and which line they can go to. Nothing else!\n<</SYS>>\n\nMenu:\n" + menu + "\n"
127
 
128
  curr_prompt = system_prompt + message + " [/INST]"
129
  if len(history) != 0:
 
132
 
133
  curr_prompt = system_prompt + message + " [/INST]"
134
  else:
135
+ curr_prompt = "<s>[INST] <<SYS>>\nYou are multilingual chat bot that helps deciding what to eat in a german canteen. In the canteen, there are different lines with names and each line may offer several food people can choose from or only one. Based on the menu and question, you suggest the user which line they should go to. You respond really briefly and do not generate long responses. You can only suggest them from the menu and which line they can go to. Nothing else!\n<</SYS>>\n\nMenu:\n" + menu + "\n" + message + " [/INST]"
136
 
137
  try:
138
  print(curr_prompt)