Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -55,8 +55,8 @@ def CASPER(sue):
|
|
55 |
i=0
|
56 |
p_answer=probs
|
57 |
id=torch.argmax(probs[0])
|
58 |
-
votes.append(1 if probs[0][allow]>probs[
|
59 |
-
return "承認" if probs[0][allow]>probs[
|
60 |
|
61 |
def greet(sue):
|
62 |
text1="BERT-1"+MELCHIOR(sue)
|
|
|
55 |
i=0
|
56 |
p_answer=probs
|
57 |
id=torch.argmax(probs[0])
|
58 |
+
votes.append(1 if probs[0][allow]>probs[0][deny] else -1)
|
59 |
+
return "承認" if probs[0][allow]>probs[0][deny] else "否定"
|
60 |
|
61 |
def greet(sue):
|
62 |
text1="BERT-1"+MELCHIOR(sue)
|