Cachoups commited on
Commit
15e96ef
·
verified ·
1 Parent(s): a9c18f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -116,7 +116,7 @@ Example:
116
  Input: whos zoe
117
  Output: Who is Zoe?
118
 
119
- """},
120
  #{"role": "user", "content": f"Fix any grammar or clarity issues in the following question. Only return the corrected question itself.\n\n{user_question}"}
121
  #Fix any grammar or clarity issues in the following question. Only return the output itself.\n\n{user_question}\nOutput:
122
  {"role": "user", "content": f"Fix any grammar or clarity issues in the following question. Only return the output itself.\n\n{user_question}"}
@@ -142,8 +142,7 @@ def respond(
142
  print("old: ",new_query)
143
  new_query = str(new_query.split("Output: ", 1)[-1] if "Output: " in new_query else new_query)
144
  print("new: ",new_query)
145
- system_message = f"""
146
- You are an expert in League of Legends (LoL) lore. You will only answer questions related to the champions and their stories within the game.
147
 
148
  Instructions:
149
  1. Use only the provided context to answer. Do not make assumptions beyond it.
 
116
  Input: whos zoe
117
  Output: Who is Zoe?
118
 
119
+ """},
120
  #{"role": "user", "content": f"Fix any grammar or clarity issues in the following question. Only return the corrected question itself.\n\n{user_question}"}
121
  #Fix any grammar or clarity issues in the following question. Only return the output itself.\n\n{user_question}\nOutput:
122
  {"role": "user", "content": f"Fix any grammar or clarity issues in the following question. Only return the output itself.\n\n{user_question}"}
 
142
  print("old: ",new_query)
143
  new_query = str(new_query.split("Output: ", 1)[-1] if "Output: " in new_query else new_query)
144
  print("new: ",new_query)
145
+ system_message = f"""You are an expert in League of Legends (LoL) lore. You will only answer questions related to the champions and their stories within the game.
 
146
 
147
  Instructions:
148
  1. Use only the provided context to answer. Do not make assumptions beyond it.