Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu
commited on
Commit
•
356ead3
1
Parent(s):
3873817
bugfix: 修复上传文件时报错的问题
Browse files- modules/index_func.py +1 -1
- requirements.txt +1 -0
modules/index_func.py
CHANGED
@@ -16,7 +16,7 @@ def get_index_name(file_src):
|
|
16 |
|
17 |
md5_hash = hashlib.md5()
|
18 |
for file_path in file_paths:
|
19 |
-
with open(file_path, "rb"
|
20 |
while chunk := f.read(8192):
|
21 |
md5_hash.update(chunk)
|
22 |
|
|
|
16 |
|
17 |
md5_hash = hashlib.md5()
|
18 |
for file_path in file_paths:
|
19 |
+
with open(file_path, "rb") as f:
|
20 |
while chunk := f.read(8192):
|
21 |
md5_hash.update(chunk)
|
22 |
|
requirements.txt
CHANGED
@@ -24,3 +24,4 @@ google.generativeai
|
|
24 |
openai
|
25 |
unstructured
|
26 |
google-api-python-client
|
|
|
|
24 |
openai
|
25 |
unstructured
|
26 |
google-api-python-client
|
27 |
+
tabulate
|