Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,6 @@ import pandas as pd
|
|
2 |
from fastai.text.all import *
|
3 |
from datasets import load_dataset
|
4 |
|
5 |
-
learn = text_classifier_learner(dls, AWD_LSTM, drop_mult=0.5, metrics=accuracy,cbs=callbacks).to_fp16()
|
6 |
learn = learn.load_encoder('finetunedClass.pth')
|
7 |
|
8 |
def predict(frase):
|
|
|
2 |
from fastai.text.all import *
|
3 |
from datasets import load_dataset
|
4 |
|
|
|
5 |
learn = learn.load_encoder('finetunedClass.pth')
|
6 |
|
7 |
def predict(frase):
|