Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,11 +7,10 @@ client = InferenceClient(
|
|
7 |
|
8 |
|
9 |
def format_prompt(message, history):
|
10 |
-
prompt = "
|
11 |
for user_prompt, bot_response in history:
|
12 |
-
prompt += f"
|
13 |
-
|
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="
|
101 |
examples=examples,
|
102 |
-
concurrency_limit=
|
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)
|