Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,7 +64,7 @@ class ModelRunner:
|
|
| 64 |
device_map="auto",
|
| 65 |
)
|
| 66 |
self.model.eval()
|
| 67 |
-
self.thresh =
|
| 68 |
|
| 69 |
# Pull commonly used tokens, falling back gracefully if not present
|
| 70 |
self.START_TOKEN_ID = self._tok_id("<|im_start|>")
|
|
|
|
| 64 |
device_map="auto",
|
| 65 |
)
|
| 66 |
self.model.eval()
|
| 67 |
+
self.thresh = get_threshold(revision)
|
| 68 |
|
| 69 |
# Pull commonly used tokens, falling back gracefully if not present
|
| 70 |
self.START_TOKEN_ID = self._tok_id("<|im_start|>")
|