Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def generate(
|
|
32 |
chat_history: list[tuple[str, str]],
|
33 |
system_prompt: str = "You are a helpful AI assistant named ChatGPT.",
|
34 |
max_new_tokens: int = 1024,
|
35 |
-
temperature: float = 0.
|
36 |
top_p: float = 0.9,
|
37 |
top_k: int = 50,
|
38 |
repetition_penalty: float = 1.2,
|
@@ -87,7 +87,7 @@ chat_interface = gr.ChatInterface(
|
|
87 |
minimum=0.1,
|
88 |
maximum=4.0,
|
89 |
step=0.1,
|
90 |
-
value=0.
|
91 |
),
|
92 |
gr.Slider(
|
93 |
label="Top-p (nucleus sampling)",
|
|
|
32 |
chat_history: list[tuple[str, str]],
|
33 |
system_prompt: str = "You are a helpful AI assistant named ChatGPT.",
|
34 |
max_new_tokens: int = 1024,
|
35 |
+
temperature: float = 0.3,
|
36 |
top_p: float = 0.9,
|
37 |
top_k: int = 50,
|
38 |
repetition_penalty: float = 1.2,
|
|
|
87 |
minimum=0.1,
|
88 |
maximum=4.0,
|
89 |
step=0.1,
|
90 |
+
value=0.3,
|
91 |
),
|
92 |
gr.Slider(
|
93 |
label="Top-p (nucleus sampling)",
|