Spaces:
Sleeping
Sleeping
Update app.py
Browse files184 unmodified lines185186187188189190191192193188189190191192193194195196184 unmodified lines fnames = [] if files: for f in files: safe_name = pathlib.Path(f.filename).name file_path = os.path.join(BASE_TEMP_DIR, task_id, "input", safe_name) with open(file_path, "wb") as buf: shutil.copyfileobj(f.file, buf) fnames.append(safe_name) for f in files: safe_name = pathlib.Path(f.filename).name file_path = os.path.join(BASE_TEMP_DIR, task_id, "input", safe_name) with open(file_path, "wb") as buf: shutil.copyfileobj(f.file, buf) fnames.append(safe_name) tasks[task_id] = {"status": "processing", "progress": 10, "last_log": "タスクを開始しました"} # 引数に output_format を追加app.py+6-6