Till Fischer
commited on
Commit
·
cca703d
1
Parent(s):
d96f744
Update all changes
Browse files
app.py
CHANGED
|
@@ -7,7 +7,11 @@ import tempfile
|
|
| 7 |
import shutil
|
| 8 |
import os
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
def run_analysis(db_file, isbn, languages):
|
| 13 |
if not isbn.strip():
|
|
|
|
| 7 |
import shutil
|
| 8 |
import os
|
| 9 |
|
| 10 |
+
import nltk
|
| 11 |
+
try:
|
| 12 |
+
nltk.data.find("tokenizers/punkt")
|
| 13 |
+
except LookupError:
|
| 14 |
+
nltk.download("punkt")
|
| 15 |
|
| 16 |
def run_analysis(db_file, isbn, languages):
|
| 17 |
if not isbn.strip():
|