Spaces:
Runtime error
Runtime error
changed model to gabella
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import pandas as pd
|
|
5 |
import os # secrets, or environment variables, like repository secrets
|
6 |
|
7 |
# setup pipeline
|
8 |
-
txt_classifier = pipeline('text-classification', model='
|
9 |
user_text = st.text.input('Add the text for classification into the college major')
|
10 |
|
11 |
# if the text field has something in it, let's compue tand predict!
|
|
|
5 |
import os # secrets, or environment variables, like repository secrets
|
6 |
|
7 |
# setup pipeline
|
8 |
+
txt_classifier = pipeline('text-classification', model='gabella/distilbert-magazine-classifier',use_auth_token=os.environ['hf_token'])
|
9 |
user_text = st.text.input('Add the text for classification into the college major')
|
10 |
|
11 |
# if the text field has something in it, let's compue tand predict!
|