Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ user_friendly_name_list = list(user_friendly_name.values())
|
|
41 |
def predict(text, chosen_model):
|
42 |
|
43 |
# Initialize the pipeline with the chosen model
|
44 |
-
model_pipeline = pipeline("text-classification", model=
|
45 |
result = model_pipeline(text)
|
46 |
label = result[0]['label']
|
47 |
|
|
|
41 |
def predict(text, chosen_model):
|
42 |
|
43 |
# Initialize the pipeline with the chosen model
|
44 |
+
model_pipeline = pipeline("text-classification", model=chosen_model)
|
45 |
result = model_pipeline(text)
|
46 |
label = result[0]['label']
|
47 |
|