Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -79,11 +79,11 @@ def load_models(mod_names):
|
|
79 |
def load_pipes(mod_list):
|
80 |
pipe_list=[]
|
81 |
for i in range (len(mod_list)):
|
82 |
-
globals()[f"pipe_{i}"] = pipeline("text-classification", model = models[i], tokenizer = models[i], device=-1)
|
83 |
-
|
84 |
return(pipe_list)
|
85 |
-
|
86 |
-
|
|
|
87 |
|
88 |
### Defining metrics
|
89 |
for i in range (len(metrics)):
|
|
|
79 |
def load_pipes(mod_list):
|
80 |
pipe_list=[]
|
81 |
for i in range (len(mod_list)):
|
82 |
+
globals()[f"pipe_{i}"] = pipeline("text-classification", model = models[i], tokenizer = models[i], device=-1)
|
|
|
83 |
return(pipe_list)
|
84 |
+
|
85 |
+
model_list= load_models(models)
|
86 |
+
pipes = load_pipes(model_list)
|
87 |
|
88 |
### Defining metrics
|
89 |
for i in range (len(metrics)):
|