Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def format_prompt(message, history):
|
|
| 14 |
return prompt
|
| 15 |
|
| 16 |
# Function to generate response
|
| 17 |
-
def generate(prompt, history, temperature=0.
|
| 18 |
temperature = max(float(temperature), 1e-2)
|
| 19 |
top_p = float(top_p)
|
| 20 |
|
|
|
|
| 14 |
return prompt
|
| 15 |
|
| 16 |
# Function to generate response
|
| 17 |
+
def generate(prompt, history, temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0):
|
| 18 |
temperature = max(float(temperature), 1e-2)
|
| 19 |
top_p = float(top_p)
|
| 20 |
|