Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,8 @@ def format_prompt(message, history):
|
|
15 |
return prompt
|
16 |
|
17 |
def generate(prompt, history, system_prompt, temperature=0.9, max_new_tokens=16000
|
18 |
-
, top_p=0.95, repetition_penalty
|
|
|
19 |
|
20 |
temperature = float(temperature)
|
21 |
if temperature < 1e-2:
|
@@ -96,4 +97,4 @@ gr.ChatInterface(
|
|
96 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
97 |
additional_inputs=additional_inputs,
|
98 |
title="Mistral 7B Instruct",
|
99 |
-
).launch(show_api=True, share=True
|
|
|
15 |
return prompt
|
16 |
|
17 |
def generate(prompt, history, system_prompt, temperature=0.9, max_new_tokens=16000
|
18 |
+
, top_p=0.95, repetition_penalty
|
19 |
+
=1.0,):
|
20 |
|
21 |
temperature = float(temperature)
|
22 |
if temperature < 1e-2:
|
|
|
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="Mistral 7B Instruct",
|
100 |
+
).launch(show_api=True, share=True)
|