Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,6 +18,7 @@ def generate(prompt, history, system_prompt, temperature=0.9, max_new_tokens=160
|
|
18 |
, top_p=0.95, repetition_penalty
|
19 |
=1.0,):
|
20 |
|
|
|
21 |
temperature = float(temperature)
|
22 |
if temperature < 1e-2:
|
23 |
temperature = 1e-2
|
@@ -97,4 +98,4 @@ gr.ChatInterface(
|
|
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,
|
|
|
18 |
, top_p=0.95, repetition_penalty
|
19 |
=1.0,):
|
20 |
|
21 |
+
|
22 |
temperature = float(temperature)
|
23 |
if temperature < 1e-2:
|
24 |
temperature = 1e-2
|
|
|
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="Mistral 7B Instruct",
|
101 |
+
).launch(show_api=True, show_error=True)
|