Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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']
|