Spaces:
Sleeping
Sleeping
Commit ·
6b69d1d
1
Parent(s): 92ae382
Analysis change
Browse files
app.py
CHANGED
|
@@ -104,7 +104,7 @@ pipe = pipeline(
|
|
| 104 |
model=chat_model,
|
| 105 |
tokenizer=tokenizer,
|
| 106 |
device_map="auto",
|
| 107 |
-
max_new_tokens=
|
| 108 |
)
|
| 109 |
|
| 110 |
def clean_chat_output(full_text):
|
|
@@ -143,7 +143,7 @@ def explain_recycling(class_label):
|
|
| 143 |
|
| 144 |
outputs = pipe(
|
| 145 |
prompt,
|
| 146 |
-
max_new_tokens=
|
| 147 |
do_sample=True,
|
| 148 |
top_p = 0.9,
|
| 149 |
temperature=0.3
|
|
|
|
| 104 |
model=chat_model,
|
| 105 |
tokenizer=tokenizer,
|
| 106 |
device_map="auto",
|
| 107 |
+
max_new_tokens=8
|
| 108 |
)
|
| 109 |
|
| 110 |
def clean_chat_output(full_text):
|
|
|
|
| 143 |
|
| 144 |
outputs = pipe(
|
| 145 |
prompt,
|
| 146 |
+
max_new_tokens=8,
|
| 147 |
do_sample=True,
|
| 148 |
top_p = 0.9,
|
| 149 |
temperature=0.3
|