Spaces:
Runtime error
Runtime error
Commit
·
cce88ae
1
Parent(s):
6a2f335
Update app.py
Browse files
app.py
CHANGED
@@ -7,9 +7,9 @@ tokenizer = AutoTokenizer.from_pretrained("FuriouslyAsleep/unhappyZebra100")
|
|
7 |
|
8 |
model = AutoModelForSequenceClassification.from_pretrained("FuriouslyAsleep/unhappyZebra100")
|
9 |
|
10 |
-
def greet(
|
11 |
|
12 |
-
inputs = tokenizer(
|
13 |
outputs = model(**inputs)
|
14 |
|
15 |
predictions = torch.nn.functional.softmax(outputs.logits, dim=-1)
|
|
|
7 |
|
8 |
model = AutoModelForSequenceClassification.from_pretrained("FuriouslyAsleep/unhappyZebra100")
|
9 |
|
10 |
+
def greet(Doc_Passage_To_Test):
|
11 |
|
12 |
+
inputs = tokenizer(Doc_Passage_To_Test, return_tensors="pt")
|
13 |
outputs = model(**inputs)
|
14 |
|
15 |
predictions = torch.nn.functional.softmax(outputs.logits, dim=-1)
|