Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def format_prompt(message, history):
|
|
13 |
prompt += f"[USER] {message} [/USER]</s>"
|
14 |
return prompt
|
15 |
|
16 |
-
def generate(prompt, history, temperature=0.6, max_new_tokens=
|
17 |
temperature = float(temperature)
|
18 |
top_p = float(top_p)
|
19 |
|
|
|
13 |
prompt += f"[USER] {message} [/USER]</s>"
|
14 |
return prompt
|
15 |
|
16 |
+
def generate(prompt, history, temperature=0.6, max_new_tokens=32768, top_p=0.95, repetition_penalty=1.2):
|
17 |
temperature = float(temperature)
|
18 |
top_p = float(top_p)
|
19 |
|