Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,8 @@ def findRealProb(text):
|
|
57 |
for prob, length in results:
|
58 |
ans = ans + prob*length
|
59 |
realProb = ans/len(text)
|
60 |
-
|
|
|
61 |
|
62 |
demo = gr.Interface(
|
63 |
fn=findRealProb,
|
|
|
57 |
for prob, length in results:
|
58 |
ans = ans + prob*length
|
59 |
realProb = ans/len(text)
|
60 |
+
print(results)
|
61 |
+
return {"Real": realProb, "Fake": 1-realProb}
|
62 |
|
63 |
demo = gr.Interface(
|
64 |
fn=findRealProb,
|