Spaces:
Sleeping
Sleeping
Commit
·
928b239
1
Parent(s):
bbe7b58
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def format_prompt(message, history):
|
|
| 15 |
return prompt
|
| 16 |
|
| 17 |
def generate(
|
| 18 |
-
prompt, history, temperature=0.2, max_new_tokens=
|
| 19 |
):
|
| 20 |
temperature = float(temperature)
|
| 21 |
if temperature < 1e-2:
|
|
@@ -49,7 +49,9 @@ demo = gr.ChatInterface(fn=generate,
|
|
| 49 |
title="Zucchetti AI",
|
| 50 |
retry_btn=None,
|
| 51 |
undo_btn=None,
|
| 52 |
-
theme="gradio/soft"
|
|
|
|
|
|
|
| 53 |
)
|
| 54 |
|
| 55 |
demo.queue().launch(show_api=True)
|
|
|
|
| 15 |
return prompt
|
| 16 |
|
| 17 |
def generate(
|
| 18 |
+
prompt, history, temperature=0.2, max_new_tokens=300, top_p=0.95, repetition_penalty=1.0,
|
| 19 |
):
|
| 20 |
temperature = float(temperature)
|
| 21 |
if temperature < 1e-2:
|
|
|
|
| 49 |
title="Zucchetti AI",
|
| 50 |
retry_btn=None,
|
| 51 |
undo_btn=None,
|
| 52 |
+
theme="gradio/soft",
|
| 53 |
+
submit_button="Invia",
|
| 54 |
+
placeholder="Inserisci il testo qui..."
|
| 55 |
)
|
| 56 |
|
| 57 |
demo.queue().launch(show_api=True)
|