This commit is contained in:
Timothy Jaeryang Baek 2025-05-23 22:10:57 +04:00
parent c8f1bdf928
commit 6636207e0c

View File

@ -154,10 +154,8 @@ def upload_file(
ProcessFileForm(file_id=id, content=result.get("text", "")),
user=user,
)
elif (
not file.content_type.startswith(("image/", "video/"))
or request.app.state.config.CONTENT_EXTRACTION_ENGINE
== "external"
elif (not file.content_type.startswith(("image/", "video/"))) or (
request.app.state.config.CONTENT_EXTRACTION_ENGINE == "external"
):
process_file(request, ProcessFileForm(file_id=id), user=user)
else: