Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,8 @@ model_list = [
|
|
22 |
def predict(chosen_model):
|
23 |
|
24 |
# Initialize the pipeline with the chosen model
|
25 |
-
|
|
|
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 = [
|