新模块功能:蚕茧视频识别

This commit is contained in:
BBIT-Kai
2025-11-18 16:32:09 +08:00
parent 530cede0bd
commit 7a5e29be1c
10 changed files with 304 additions and 127 deletions
+2 -3
View File
@@ -22,11 +22,10 @@ def push_file(bucket_name, object_name, file_bytes, contents, content_type):
)
def get_upload_token(bucket_name, object_name, xpires=timedelta(hours=1)):
upload_url = minio_client.presigned_put_object(
def get_upload_token(user_id, bucket_name, object_name, xpires=timedelta(minutes=15)):
return minio_client.presigned_put_object(
bucket_name=bucket_name, object_name=object_name, expires=xpires
)
return {"upload_url": upload_url, "object_name": object_name}
def get_temp_url(bucket_name, object_name):