gilramos commited on
Commit
8dd71ab
1 Parent(s): 2c156ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -34,6 +34,7 @@ def predict(text, chosen_model):
34
  # Initialize the pipeline with the chosen model
35
  model_pipeline = pipeline("text-classification", model=chosen_model)
36
  result = model_pipeline(text)
 
37
 
38
  predicted_label = result[0]['label']
39
  predicted_score = result[0]['score']
 
34
  # Initialize the pipeline with the chosen model
35
  model_pipeline = pipeline("text-classification", model=chosen_model)
36
  result = model_pipeline(text)
37
+
38
 
39
  predicted_label = result[0]['label']
40
  predicted_score = result[0]['score']