Spaces:
Paused
Paused
Upload app.py with huggingface_hub
Browse files541 unmodified lines542543544545546547548549541 unmodified linesexcept Exception:passtime.sleep(1)if proc.returncode!=0 or not os.path.exists(tmp_path) or os.path.getsize(tmp_path)==0:jobs[job_id]["status"]=f"{base_status} → Failed download ({proc.returncode})"try: shutil.rmtree(tmp_base)except: passreturn False541 unmodified lines542543544545546547548549550551541 unmodified linesexcept Exception:passtime.sleep(1)try: err=(proc.stderr.read() or b"")[:400].decode("utf-8","ignore")except Exception: err=""if proc.returncode!=0 or not os.path.exists(tmp_path) or os.path.getsize(tmp_path)==0:jobs[job_id]["status"]=f"{base_status} → Failed({proc.returncode}) {err.strip()[-160:]}"try: shutil.rmtree(tmp_base)except: passreturn False
app.py+3-1