Spaces:
Sleeping
Sleeping
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, system_prompt, temperature=0.9, max_new_tokens=
|
19 |
):
|
20 |
temperature = float(temperature)
|
21 |
if temperature < 1e-2:
|
@@ -58,7 +58,7 @@ additional_inputs=[
|
|
58 |
),
|
59 |
gr.Slider(
|
60 |
label="Max new tokens",
|
61 |
-
value=
|
62 |
minimum=0,
|
63 |
maximum=32768,
|
64 |
step=64,
|
|
|
15 |
return prompt
|
16 |
|
17 |
def generate(
|
18 |
+
prompt, history, system_prompt, temperature=0.9, max_new_tokens=1000, top_p=0.95, repetition_penalty=1.0,
|
19 |
):
|
20 |
temperature = float(temperature)
|
21 |
if temperature < 1e-2:
|
|
|
58 |
),
|
59 |
gr.Slider(
|
60 |
label="Max new tokens",
|
61 |
+
value=1000,
|
62 |
minimum=0,
|
63 |
maximum=32768,
|
64 |
step=64,
|