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