karthik commited on
Commit
daf49a0
·
verified ·
1 Parent(s): 7d989dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,8 +9,8 @@ client = InferenceClient(
9
  def format_prompt(message, history):
10
  prompt = ""
11
  for user_prompt, bot_response in history:
12
- prompt += f"GPT4 Correct User: Answer the following in the context of Bhagavan Ramana Maharshi {user_prompt}<|end_of_turn|>GPT4 Correct Assistant: {bot_response}<|end_of_turn|>"
13
- prompt += f"GPT4 Correct User: {message}<|end_of_turn|>GPT4 Correct Assistant:"
14
  return prompt
15
 
16
  def generate(
 
9
  def format_prompt(message, history):
10
  prompt = ""
11
  for user_prompt, bot_response in history:
12
+ prompt += f"GPT4 Correct User: {user_prompt}<|end_of_turn|>GPT4 Correct Assistant: {bot_response}<|end_of_turn|>"
13
+ prompt += f"GPT4 Correct User: Answer the following in the context of Bhagavan Ramana Maharshi {message}<|end_of_turn|>GPT4 Correct Assistant:"
14
  return prompt
15
 
16
  def generate(