sasha HF staff commited on
Commit
64b545b
1 Parent(s): ebb696e

Update app.py

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