|
|
@@ -15,7 +15,7 @@ from app.services.file.impl.oss_file import OSSFileService
|
|
|
# import asyncio
|
|
|
from pathlib import Path
|
|
|
|
|
|
-allowed_formats = [".bmp", ".heic", ".jpeg", ".png", ".tiff", "mp3", ".mp4"]
|
|
|
+allowed_formats = [".bmp", ".heic", ".jpeg", ".png", ".tiff", ".mp3", ".mp4", ".wav"]
|
|
|
|
|
|
|
|
|
class R2RFileService(OSSFileService):
|
|
|
@@ -236,14 +236,14 @@ class R2RFileService(OSSFileService):
|
|
|
"title": doc.metadata["title"],
|
|
|
}
|
|
|
)
|
|
|
- '''
|
|
|
+ """
|
|
|
for doc in list_results:
|
|
|
text = doc.text
|
|
|
if "text" in files:
|
|
|
files["text"] += f"\n\n{text}"
|
|
|
else:
|
|
|
files["text"] = text
|
|
|
- '''
|
|
|
+ """
|
|
|
print(files)
|
|
|
return files
|
|
|
else:
|