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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,7 +9,7 @@ client = InferenceClient(
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: {message}<|end_of_turn|>GPT4 Correct Assistant:"
14
  return prompt
15
 
@@ -91,7 +91,7 @@ gr.ChatInterface(
91
  fn=generate,
92
  chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
93
  additional_inputs=additional_inputs,
94
- title="RamanaGPT",
95
  examples=examples,
96
  concurrency_limit=50,
97
  ).launch(show_api=False)
 
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
 
 
91
  fn=generate,
92
  chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
93
  additional_inputs=additional_inputs,
94
+ title="RamanaGPT (Research Preview can make mistakes)",
95
  examples=examples,
96
  concurrency_limit=50,
97
  ).launch(show_api=False)