Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from fastai.text.all import *
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
-
learn
|
| 5 |
|
| 6 |
categories = ('Negative', 'Positive')
|
| 7 |
label = gr.outputs.Label()
|
|
|
|
| 1 |
from fastai.text.all import *
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
+
learn = load_learner('export.pkl')
|
| 5 |
|
| 6 |
categories = ('Negative', 'Positive')
|
| 7 |
label = gr.outputs.Label()
|