Spaces:
Sleeping
Sleeping
Commit
·
da34c04
1
Parent(s):
5f54b9c
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def format_prompt(message, history):
|
|
| 14 |
return prompt
|
| 15 |
|
| 16 |
def generate(
|
| 17 |
-
prompt, history, temperature=0.9, max_new_tokens=
|
| 18 |
):
|
| 19 |
temperature = float(temperature)
|
| 20 |
if temperature < 1e-2:
|
|
@@ -52,7 +52,7 @@ additional_inputs=[
|
|
| 52 |
),
|
| 53 |
gr.Slider(
|
| 54 |
label="Max new tokens",
|
| 55 |
-
value=
|
| 56 |
minimum=0,
|
| 57 |
maximum=1048,
|
| 58 |
step=64,
|
|
|
|
| 14 |
return prompt
|
| 15 |
|
| 16 |
def generate(
|
| 17 |
+
prompt, history, temperature=0.9, max_new_tokens=512, top_p=0.95, repetition_penalty=1.0,
|
| 18 |
):
|
| 19 |
temperature = float(temperature)
|
| 20 |
if temperature < 1e-2:
|
|
|
|
| 52 |
),
|
| 53 |
gr.Slider(
|
| 54 |
label="Max new tokens",
|
| 55 |
+
value=512,
|
| 56 |
minimum=0,
|
| 57 |
maximum=1048,
|
| 58 |
step=64,
|