Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -30,6 +30,7 @@ import gradio as gr
|
|
30 |
device = 'cpu'
|
31 |
le = LabelEncoder()
|
32 |
le = joblib.load("SVD/le.gz")
|
|
|
33 |
|
34 |
class ModelPre(torch.nn.Module):
|
35 |
def __init__(self):
|
|
|
30 |
device = 'cpu'
|
31 |
le = LabelEncoder()
|
32 |
le = joblib.load("SVD/le.gz")
|
33 |
+
len_classes = len(le.classes_) + 1
|
34 |
|
35 |
class ModelPre(torch.nn.Module):
|
36 |
def __init__(self):
|