mirror of
https://github.com/facefusion/facefusion.git
synced 2026-08-18 14:57:13 +02:00
hopefully fixes windows CI error
This commit is contained in:
@@ -54,9 +54,10 @@ async def save_asset_files(upload_files : List[UploadFile]) -> List[str]:
|
|||||||
while upload_chunk := await upload_file.read(1024):
|
while upload_chunk := await upload_file.read(1024):
|
||||||
temp_file.write(upload_chunk)
|
temp_file.write(upload_chunk)
|
||||||
|
|
||||||
|
temp_file.flush()
|
||||||
media_type = detect_media_type(temp_file.name)
|
media_type = detect_media_type(temp_file.name)
|
||||||
temp_path = state_manager.get_temp_path()
|
temp_path = state_manager.get_temp_path()
|
||||||
asset_path = os.path.join(temp_path, temp_file.name + '.' + upload_file_extension)
|
asset_path = os.path.join(temp_path, os.path.basename(temp_file.name) + upload_file_extension)
|
||||||
|
|
||||||
if media_type == 'audio' and ffmpeg.sanitize_audio(temp_file.name, asset_path):
|
if media_type == 'audio' and ffmpeg.sanitize_audio(temp_file.name, asset_path):
|
||||||
asset_paths.append(asset_path)
|
asset_paths.append(asset_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user