jarif commited on
Commit
dfd3250
·
verified ·
1 Parent(s): cb2c11c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,6 +1,9 @@
1
  import gradio as gr
2
  from fastai.text.all import *
3
- from blurr.text.modeling.all import *
 
 
 
4
 
5
  # Load the exported model
6
  learn = load_learner('article_highlights.pkl')
 
1
  import gradio as gr
2
  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 = load_metric("squad", trust_remote_code=True)
7
 
8
  # Load the exported model
9
  learn = load_learner('article_highlights.pkl')