Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,10 +27,12 @@ def generate(
|
|
27 |
top_p=top_p,
|
28 |
repetition_penalty=repetition_penalty,
|
29 |
do_sample=True,
|
|
|
|
|
30 |
)
|
31 |
|
32 |
formatted_prompt = format_prompt(system_prompt, prompt, history)
|
33 |
-
output = client.text_generation(formatted_prompt, **generate_kwargs
|
34 |
return output
|
35 |
|
36 |
|
@@ -92,7 +94,7 @@ gr.ChatInterface(
|
|
92 |
fn=generate,
|
93 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
94 |
additional_inputs=additional_inputs,
|
95 |
-
title="Dolphin 2.8 Gemma 2b",
|
96 |
examples=examples,
|
97 |
concurrency_limit=5,
|
98 |
).launch(show_api=False)
|
|
|
27 |
top_p=top_p,
|
28 |
repetition_penalty=repetition_penalty,
|
29 |
do_sample=True,
|
30 |
+
details=False,
|
31 |
+
return_full_text=False,
|
32 |
)
|
33 |
|
34 |
formatted_prompt = format_prompt(system_prompt, prompt, history)
|
35 |
+
output = client.text_generation(formatted_prompt, **generate_kwargs)
|
36 |
return output
|
37 |
|
38 |
|
|
|
94 |
fn=generate,
|
95 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
96 |
additional_inputs=additional_inputs,
|
97 |
+
title="SAM Dolphin 2.8 Gemma 2b",
|
98 |
examples=examples,
|
99 |
concurrency_limit=5,
|
100 |
).launch(show_api=False)
|