Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from fastai.text.all import *
|
|
3 |
from blurr.text.modeling.all import load_metric
|
4 |
|
5 |
# Set trust_remote_code=True when loading the SQuAD metric
|
6 |
-
squad_metric =
|
7 |
|
8 |
# Load the exported model
|
9 |
learn = load_learner('article_highlights.pkl')
|
|
|
3 |
from blurr.text.modeling.all import load_metric
|
4 |
|
5 |
# Set trust_remote_code=True when loading the SQuAD metric
|
6 |
+
squad_metric = evaluate.load("squad", trust_remote_code=True)
|
7 |
|
8 |
# Load the exported model
|
9 |
learn = load_learner('article_highlights.pkl')
|