Spaces:
Runtime error
Runtime error
0x7o
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,7 +39,8 @@ def predict(message, history):
|
|
| 39 |
do_sample=True,
|
| 40 |
top_p=0.95,
|
| 41 |
top_k=50,
|
| 42 |
-
temperature=0.
|
|
|
|
| 43 |
num_beams=1,
|
| 44 |
stopping_criteria=StoppingCriteriaList([stop])
|
| 45 |
)
|
|
@@ -56,6 +57,6 @@ def predict(message, history):
|
|
| 56 |
# Setting up the Gradio chat interface.
|
| 57 |
gr.ChatInterface(predict,
|
| 58 |
title="Fialka 13B v3.1",
|
| 59 |
-
description="
|
| 60 |
examples=['Как приготовить рыбу?', 'Кто президент США?']
|
| 61 |
).launch() # Launching the web interface.
|
|
|
|
| 39 |
do_sample=True,
|
| 40 |
top_p=0.95,
|
| 41 |
top_k=50,
|
| 42 |
+
temperature=0.2,
|
| 43 |
+
repetition_penalty=1.2,
|
| 44 |
num_beams=1,
|
| 45 |
stopping_criteria=StoppingCriteriaList([stop])
|
| 46 |
)
|
|
|
|
| 57 |
# Setting up the Gradio chat interface.
|
| 58 |
gr.ChatInterface(predict,
|
| 59 |
title="Fialka 13B v3.1",
|
| 60 |
+
description="Внимание! Все ответы сгенерированы и могут содержать не точную информацию.",
|
| 61 |
examples=['Как приготовить рыбу?', 'Кто президент США?']
|
| 62 |
).launch() # Launching the web interface.
|