Spaces:
Sleeping
Sleeping
Update app.py
Browse files133 unmodified lines13413513613713813913714014114214361 unmodified lines205206207205208209210211133 unmodified lines tasks[task_id]["last_log"] = "取得完了" tasks[task_id]["progress"] = 90 except Exception as e: error_msg = str(e) if "ERR_NGROK" in error_msg or "<!DOCTYPE html>" in error_msg or "ngrok" in error_msg.lower(): raise Exception("サーバーが停止しています。管理者にお問い合わせください。") raise Exception(f"Colab接続失敗: {str(e)}") raise Exception(f"Colab接続失敗: {error_msg}")
# 通常のメディア変換処理 (HEIC, M4A, etc) else:61 unmodified lines tool_id: str = Form(...), url: Optional[str] = Form(None), files: Optional[List[UploadFile]] = File(None), output_format: str = Form("mp3") # 追加 output_format: str = Form("mp3")): task_id = str(uuid.uuid4()) os.makedirs(os.path.join(BASE_TEMP_DIR, task_id, "input"), exist_ok=True)app.py+5-2