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