PirateXX commited on
Commit
8db0e68
·
1 Parent(s): 1e9e4f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = "CG"
78
  if(outputv1>=0.5):
79
- label = "OR"
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