yulongchen commited on
Commit
5b78ed1
·
1 Parent(s): d21fef3

Add system

Browse files
Files changed (4) hide show
  1. README copy.md +0 -13
  2. README.md +1 -0
  3. system/hero_QA.py +1 -1
  4. test.html +0 -2
README copy.md DELETED
@@ -1,13 +0,0 @@
1
- ---
2
- title: Demo
3
- emoji: 🔥
4
- colorFrom: yellow
5
- colorTo: blue
6
- sdk: gradio
7
- sdk_version: 5.32.1
8
- app_file: app.py
9
- pinned: false
10
- license: mit
11
- ---
12
-
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -7,6 +7,7 @@ sdk: gradio
7
  sdk_version: 5.34.0
8
  app_file: app.py
9
  pinned: false
 
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
7
  sdk_version: 5.34.0
8
  app_file: app.py
9
  pinned: false
10
+ license: cc-by-nc-4.0
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
system/hero_QA.py CHANGED
@@ -12,7 +12,7 @@ def run_hero_reranking(user_id, end_date):
12
 
13
  def safe_run(cmd, timeout=600):
14
  try:
15
- print(f"👉 Running: {' '.join(cmd)}")
16
  subprocess.run(cmd, check=True, timeout=timeout)
17
  except subprocess.CalledProcessError as e:
18
  print(f"[❌ ERROR] Subprocess failed: {e}")
 
12
 
13
  def safe_run(cmd, timeout=600):
14
  try:
15
+ print(f"Running: {' '.join(cmd)}")
16
  subprocess.run(cmd, check=True, timeout=timeout)
17
  except subprocess.CalledProcessError as e:
18
  print(f"[❌ ERROR] Subprocess failed: {e}")
test.html CHANGED
@@ -245,12 +245,10 @@
245
  const res = await fetch(`/api/status?user_id=${userId}&timestamp=${timestamp}&_=${Date.now()}`);
246
  const data = await res.json();
247
 
248
- // 动态渲染结构化状态
249
  if (data.status) {
250
  statusElement.innerHTML = renderStatus(data.status);
251
  }
252
 
253
- // 检查是否完成
254
  const values = Object.values(data.status || {});
255
  const finalText = values.join(" ").toLowerCase();
256
 
 
245
  const res = await fetch(`/api/status?user_id=${userId}&timestamp=${timestamp}&_=${Date.now()}`);
246
  const data = await res.json();
247
 
 
248
  if (data.status) {
249
  statusElement.innerHTML = renderStatus(data.status);
250
  }
251
 
 
252
  const values = Object.values(data.status || {});
253
  const finalText = values.join(" ").toLowerCase();
254