Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -79,11 +79,11 @@ def evaluate(
|
|
79 |
instruction,
|
80 |
**kwargs,
|
81 |
):
|
82 |
-
temperature=0.1
|
83 |
-
top_p=0.75
|
84 |
-
top_k=40
|
85 |
-
num_beams=4
|
86 |
-
max_new_tokens=128
|
87 |
prompt = instruction
|
88 |
inputs = tokenizer(prompt, return_tensors="pt")
|
89 |
input_ids = inputs["input_ids"].to(device)
|
|
|
79 |
instruction,
|
80 |
**kwargs,
|
81 |
):
|
82 |
+
temperature=0.1
|
83 |
+
top_p=0.75
|
84 |
+
top_k=40
|
85 |
+
num_beams=4
|
86 |
+
max_new_tokens=128
|
87 |
prompt = instruction
|
88 |
inputs = tokenizer(prompt, return_tensors="pt")
|
89 |
input_ids = inputs["input_ids"].to(device)
|