Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def format_prompt(message, history):
|
|
18 |
return prompt
|
19 |
|
20 |
def generate(
|
21 |
-
prompt, history, temperature=0.9, max_new_tokens=
|
22 |
):
|
23 |
temperature = float(temperature)
|
24 |
if temperature < 1e-2:
|
@@ -57,9 +57,9 @@ additional_inputs=[
|
|
57 |
),
|
58 |
gr.Slider(
|
59 |
label="Max new tokens",
|
60 |
-
value=
|
61 |
minimum=0,
|
62 |
-
maximum=
|
63 |
step=64,
|
64 |
interactive=True,
|
65 |
info="The maximum numbers of new tokens",
|
|
|
18 |
return prompt
|
19 |
|
20 |
def generate(
|
21 |
+
prompt, history, temperature=0.9, max_new_tokens=1510, top_p=0.95, repetition_penalty=1.0,
|
22 |
):
|
23 |
temperature = float(temperature)
|
24 |
if temperature < 1e-2:
|
|
|
57 |
),
|
58 |
gr.Slider(
|
59 |
label="Max new tokens",
|
60 |
+
value=1510,
|
61 |
minimum=0,
|
62 |
+
maximum=1510,
|
63 |
step=64,
|
64 |
interactive=True,
|
65 |
info="The maximum numbers of new tokens",
|