Spaces:
Sleeping
Sleeping
Fix bug
Browse files
app.py
CHANGED
@@ -10,7 +10,8 @@ def read_pdf(*inps):
|
|
10 |
sub = page.extract_text()
|
11 |
if text_rule:
|
12 |
for rule in text_rule.split(";"):
|
13 |
-
|
|
|
14 |
text += sub
|
15 |
return text
|
16 |
|
|
|
10 |
sub = page.extract_text()
|
11 |
if text_rule:
|
12 |
for rule in text_rule.split(";"):
|
13 |
+
if rule:
|
14 |
+
sub = eval(rule)
|
15 |
text += sub
|
16 |
return text
|
17 |
|