Spaces:
Runtime error
Runtime error
Fix defaults
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def save_inputs_and_outputs(inputs, outputs, generate_kwargs):
|
|
| 44 |
commit_url = repo.push_to_hub()
|
| 45 |
|
| 46 |
|
| 47 |
-
def generate(instruction, temperature=0.
|
| 48 |
set_seed(42)
|
| 49 |
formatted_instruction = PROMPT_TEMPLATE.format(prompt=instruction)
|
| 50 |
|
|
|
|
| 44 |
commit_url = repo.push_to_hub()
|
| 45 |
|
| 46 |
|
| 47 |
+
def generate(instruction, temperature=0.9, max_new_tokens=128, top_p=0.95, top_k=100):
|
| 48 |
set_seed(42)
|
| 49 |
formatted_instruction = PROMPT_TEMPLATE.format(prompt=instruction)
|
| 50 |
|