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