Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -74,9 +74,9 @@ def findRealProb(data):
|
|
74 |
for chunk in chunksOfText:
|
75 |
outputv1 = predict(chunk)
|
76 |
# outputv2 = predict(chunk, modelv2, tokenizerv2)
|
77 |
-
label = "
|
78 |
if(outputv1>=0.5):
|
79 |
-
label = "
|
80 |
results.append({"Text":chunk, "Label": label, "Confidence":(outputv1)})
|
81 |
ans = 0
|
82 |
cnt = 0
|
|
|
74 |
for chunk in chunksOfText:
|
75 |
outputv1 = predict(chunk)
|
76 |
# outputv2 = predict(chunk, modelv2, tokenizerv2)
|
77 |
+
label = "AI"
|
78 |
if(outputv1>=0.5):
|
79 |
+
label = "Human"
|
80 |
results.append({"Text":chunk, "Label": label, "Confidence":(outputv1)})
|
81 |
ans = 0
|
82 |
cnt = 0
|