karthik commited on
Commit
952a557
·
verified ·
1 Parent(s): f0eac48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -7,11 +7,10 @@ client = InferenceClient(
7
 
8
 
9
  def format_prompt(message, history):
10
- prompt = "<s>"
11
  for user_prompt, bot_response in history:
12
- prompt += f"[INST] {user_prompt} [/INST]"
13
- prompt += f" {bot_response}</s> "
14
- prompt += f"[INST] {message} [/INST]"
15
  return prompt
16
 
17
  def generate(
@@ -97,7 +96,7 @@ gr.ChatInterface(
97
  fn=generate,
98
  chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
99
  additional_inputs=additional_inputs,
100
- title="Mixtral 46.7B",
101
  examples=examples,
102
- concurrency_limit=20,
103
  ).launch(show_api=False)
 
7
 
8
 
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: {response}<|end_of_turn|>"
13
+ prompt += f"GPT4 Correct User: {message}<|end_of_turn|>GPT4 Correct Assistant:"
 
14
  return prompt
15
 
16
  def generate(
 
96
  fn=generate,
97
  chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
98
  additional_inputs=additional_inputs,
99
+ title="RamanaGPT",
100
  examples=examples,
101
+ concurrency_limit=50,
102
  ).launch(show_api=False)