Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def generate(
|
|
62 |
chat_history: list[tuple[str, str]],
|
63 |
max_new_tokens: int = 1024,
|
64 |
temperature: float = 0.6,
|
65 |
-
top_p: float = 0.
|
66 |
top_k: int = 50,
|
67 |
repetition_penalty: float = 1.2,
|
68 |
) -> Iterator[str]:
|
@@ -118,7 +118,7 @@ demo = gr.ChatInterface(
|
|
118 |
gr.Slider(
|
119 |
minimum=0.1,
|
120 |
maximum=1.0,
|
121 |
-
value=0.
|
122 |
step=0.9,
|
123 |
label="Top-p (nucleus sampling)",
|
124 |
),
|
|
|
62 |
chat_history: list[tuple[str, str]],
|
63 |
max_new_tokens: int = 1024,
|
64 |
temperature: float = 0.6,
|
65 |
+
top_p: float = 0.7,
|
66 |
top_k: int = 50,
|
67 |
repetition_penalty: float = 1.2,
|
68 |
) -> Iterator[str]:
|
|
|
118 |
gr.Slider(
|
119 |
minimum=0.1,
|
120 |
maximum=1.0,
|
121 |
+
value=0.7,
|
122 |
step=0.9,
|
123 |
label="Top-p (nucleus sampling)",
|
124 |
),
|