Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import pandas as pd
|
|
2 |
from fastai.text.all import *
|
3 |
from datasets import load_dataset
|
4 |
|
5 |
-
learn =
|
6 |
|
7 |
def predict(frase):
|
8 |
pred = learn.predict(frase)
|
|
|
2 |
from fastai.text.all import *
|
3 |
from datasets import load_dataset
|
4 |
|
5 |
+
learn = load_encoder('finetunedClass.pth')
|
6 |
|
7 |
def predict(frase):
|
8 |
pred = learn.predict(frase)
|