Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def run_survey(surveyor, download_placeholder, research_keywords=None, arxiv_ids
|
|
| 20 |
import time
|
| 21 |
|
| 22 |
hash = hashlib.sha1()
|
| 23 |
-
hash.update(str(time.time()))
|
| 24 |
temp_hash = hash.hexdigest()
|
| 25 |
survey_root = Path(temp_hash).resolve()
|
| 26 |
dir_args = {f'{dname}_dir': survey_root / dname for dname in ['pdf', 'txt', 'img', 'tab', 'dump']}
|
|
|
|
| 20 |
import time
|
| 21 |
|
| 22 |
hash = hashlib.sha1()
|
| 23 |
+
hash.update(str(time.time()).encode('utf-8'))
|
| 24 |
temp_hash = hash.hexdigest()
|
| 25 |
survey_root = Path(temp_hash).resolve()
|
| 26 |
dir_args = {f'{dname}_dir': survey_root / dname for dname in ['pdf', 'txt', 'img', 'tab', 'dump']}
|