robocan commited on
Commit
4184b6d
1 Parent(s): dccd8f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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):