gilramos commited on
Commit
9811602
1 Parent(s): 835a2ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -22,7 +22,8 @@ model_list = [
22
  def predict(chosen_model):
23
 
24
  # Initialize the pipeline with the chosen model
25
- predicted_label = pipeline("text-classification", model=chosen_model)
 
26
  return predicted_label
27
 
28
  inputs = [
 
22
  def predict(chosen_model):
23
 
24
  # Initialize the pipeline with the chosen model
25
+ model_pipeline = pipeline("text-classification", model=chosen_model)
26
+ predicted_label = model_pipeline[0]
27
  return predicted_label
28
 
29
  inputs = [