Spaces:
Runtime error
Runtime error
tdnathmlenthusiast
commited on
Commit
•
c5c3b96
1
Parent(s):
d9e97d8
Load the learner with trust_remote_code=True
Browse files
app.py
CHANGED
@@ -6,8 +6,9 @@ from fastai.text.all import *
|
|
6 |
from blurr.text.data.all import *
|
7 |
from blurr.text.modeling.all import *
|
8 |
|
9 |
-
# Load the learner
|
10 |
-
inf_learn = load_learner(fname=Path("laptop_summarizer_1.pkl"))
|
|
|
11 |
|
12 |
# Define a function to generate summaries using your model
|
13 |
def generate_summary(input_text):
|
@@ -26,4 +27,4 @@ interface = gr.Interface(
|
|
26 |
)
|
27 |
|
28 |
# Start the Gradio app
|
29 |
-
interface.launch(inline=True
|
|
|
6 |
from blurr.text.data.all import *
|
7 |
from blurr.text.modeling.all import *
|
8 |
|
9 |
+
# Load the learner with trust_remote_code=True
|
10 |
+
inf_learn = load_learner(fname=Path("laptop_summarizer_1.pkl"), trust_remote_code=True)
|
11 |
+
|
12 |
|
13 |
# Define a function to generate summaries using your model
|
14 |
def generate_summary(input_text):
|
|
|
27 |
)
|
28 |
|
29 |
# Start the Gradio app
|
30 |
+
interface.launch(inline=True)
|