Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -62,8 +62,6 @@ def findRealProb(text):
|
|
62 |
results = []
|
63 |
for chunk in chunksOfText:
|
64 |
output = predict(chunk)
|
65 |
-
print(chunk)
|
66 |
-
print("-----------------------------------")
|
67 |
results.append([output, len(chunk)])
|
68 |
|
69 |
ans = 0
|
@@ -78,7 +76,6 @@ def upload_file(file):
|
|
78 |
|
79 |
if file:
|
80 |
pdf_file = file.name
|
81 |
-
print(file, pdf_file)
|
82 |
text = ""
|
83 |
with pdfplumber.open(pdf_file) as pdf:
|
84 |
cnt = 0
|
|
|
62 |
results = []
|
63 |
for chunk in chunksOfText:
|
64 |
output = predict(chunk)
|
|
|
|
|
65 |
results.append([output, len(chunk)])
|
66 |
|
67 |
ans = 0
|
|
|
76 |
|
77 |
if file:
|
78 |
pdf_file = file.name
|
|
|
79 |
text = ""
|
80 |
with pdfplumber.open(pdf_file) as pdf:
|
81 |
cnt = 0
|