Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,8 +25,8 @@ except:
|
|
| 25 |
tokenizer = AutoTokenizer.from_pretrained("roberta-base")
|
| 26 |
|
| 27 |
# Load Thresholds
|
| 28 |
-
if os.path.exists("
|
| 29 |
-
with open("
|
| 30 |
THRESHOLDS = json.load(f)
|
| 31 |
else:
|
| 32 |
THRESHOLDS = DEFAULT_THRESHOLDS
|
|
|
|
| 25 |
tokenizer = AutoTokenizer.from_pretrained("roberta-base")
|
| 26 |
|
| 27 |
# Load Thresholds
|
| 28 |
+
if os.path.exists("fine_tune_thresholds.json"):
|
| 29 |
+
with open("fine_tune_thresholds.json", "r") as f:
|
| 30 |
THRESHOLDS = json.load(f)
|
| 31 |
else:
|
| 32 |
THRESHOLDS = DEFAULT_THRESHOLDS
|