Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ def greet(name):
|
|
7 |
|
8 |
model = SetFitModel.from_pretrained("aalkaswan/java-deprecation-classifier",
|
9 |
device='cpu', #Use this if you don't have a GPU
|
10 |
-
)
|
11 |
|
12 |
def classify(text):
|
13 |
return model(text)
|
|
|
7 |
|
8 |
model = SetFitModel.from_pretrained("aalkaswan/java-deprecation-classifier",
|
9 |
device='cpu', #Use this if you don't have a GPU
|
10 |
+
token=os.environ.get('sec_tok'))
|
11 |
|
12 |
def classify(text):
|
13 |
return model(text)
|