Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,6 +25,7 @@ def predict(text, chosen_model):
|
|
25 |
model_pipeline = pipeline("text-classification", model=chosen_model)
|
26 |
result = model_pipeline(text)
|
27 |
label = result[0]['label']
|
|
|
28 |
return label
|
29 |
|
30 |
inputs = [
|
|
|
25 |
model_pipeline = pipeline("text-classification", model=chosen_model)
|
26 |
result = model_pipeline(text)
|
27 |
label = result[0]['label']
|
28 |
+
|
29 |
return label
|
30 |
|
31 |
inputs = [
|