Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -62,6 +62,7 @@ def predict(query):
|
|
62 |
def findRealProb(text):
|
63 |
chunksOfText = (chunks_of_900(text))
|
64 |
results = []
|
|
|
65 |
for chunk in chunksOfText:
|
66 |
output = predict(chunk)
|
67 |
results.append([output, len(chunk)])
|
|
|
62 |
def findRealProb(text):
|
63 |
chunksOfText = (chunks_of_900(text))
|
64 |
results = []
|
65 |
+
return {"Real": 0, "Fake": 1}, results
|
66 |
for chunk in chunksOfText:
|
67 |
output = predict(chunk)
|
68 |
results.append([output, len(chunk)])
|