gilramos commited on
Commit
918502d
1 Parent(s): b4b2d15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ user_friendly_name_list = list(user_friendly_name.values())
41
  def predict(text, chosen_model):
42
 
43
  # Initialize the pipeline with the chosen model
44
- model_pipeline = pipeline("text-classification", model=reverse_user_friendly_name[chosen_model])
45
  result = model_pipeline(text)
46
  label = result[0]['label']
47
 
 
41
  def predict(text, chosen_model):
42
 
43
  # Initialize the pipeline with the chosen model
44
+ model_pipeline = pipeline("text-classification", model=chosen_model)
45
  result = model_pipeline(text)
46
  label = result[0]['label']
47