Spaces:
Sleeping
Sleeping
Commit ·
5b78ed1
1
Parent(s): d21fef3
Add system
Browse filesFiles changed (4)
- README copy.mdDeleted-13
- README.md+1
- system/hero_QA.py+1-1
- test.html-2
12345678910111213---title: Demoemoji: 🔥colorFrom: yellowcolorTo: bluesdk: gradiosdk_version: 5.32.1app_file: app.pypinned: falselicense: mit---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference6 unmodified lines7891011126 unmodified linessdk_version: 5.34.0app_file: app.pypinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference6 unmodified lines789101112136 unmodified linessdk_version: 5.34.0app_file: app.pypinned: falselicense: cc-by-nc-4.0---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
11 unmodified lines1213141516171811 unmodified linesdef safe_run(cmd, timeout=600):try:print(f"👉 Running: {' '.join(cmd)}")subprocess.run(cmd, check=True, timeout=timeout)except subprocess.CalledProcessError as e:print(f"[❌ ERROR] Subprocess failed: {e}")11 unmodified lines1213141516171811 unmodified linesdef safe_run(cmd, timeout=600):try:print(f"Running: {' '.join(cmd)}")subprocess.run(cmd, check=True, timeout=timeout)except subprocess.CalledProcessError as e:print(f"[❌ ERROR] Subprocess failed: {e}")
244 unmodified lines245246247248249250251252253254255256244 unmodified linesconst res = await fetch(`/api/status?user_id=${userId}×tamp=${timestamp}&_=${Date.now()}`);const data = await res.json();// 动态渲染结构化状态if (data.status) {statusElement.innerHTML = renderStatus(data.status);}// 检查是否完成const values = Object.values(data.status || {});const finalText = values.join(" ").toLowerCase();244 unmodified lines245246247248249250251252253254244 unmodified linesconst res = await fetch(`/api/status?user_id=${userId}×tamp=${timestamp}&_=${Date.now()}`);const data = await res.json();if (data.status) {statusElement.innerHTML = renderStatus(data.status);}const values = Object.values(data.status || {});const finalText = values.join(" ").toLowerCase();
README copy.mdDeleted-13
README.md+1
system/hero_QA.py+1-1
test.html-2