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