RENKEYE commited on
Commit
3a61333
·
verified ·
1 Parent(s): 25e3230

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,8 +4,8 @@ import subprocess
4
  from loguru import logger
5
 
6
  def setup_and_run():
7
- repo_url = "https://github.com/renkexuan369/Infinity-Parser2-pro.git"
8
- repo_dir = "Infinity-Parser2-pro"
9
 
10
  # =========================================
11
  # 1. 动态获取/拉取最新代码
@@ -31,7 +31,7 @@ def setup_and_run():
31
 
32
  # 关键:必须设置 cwd=repo_dir,否则 Python 找不到 utils.py 和 prompts.py
33
  try:
34
- subprocess.run([sys.executable, "inf_gradio.py"], cwd=repo_dir, check=True)
35
  except subprocess.CalledProcessError as e:
36
  logger.error(f"Gradio 服务异常退出: {e}")
37
 
 
4
  from loguru import logger
5
 
6
  def setup_and_run():
7
+ repo_url = "https://github.com/renkexuan369/INF-MLLM.git"
8
+ repo_dir = "Infinity-Parser2/infinity_parser2"
9
 
10
  # =========================================
11
  # 1. 动态获取/拉取最新代码
 
31
 
32
  # 关键:必须设置 cwd=repo_dir,否则 Python 找不到 utils.py 和 prompts.py
33
  try:
34
+ subprocess.run([sys.executable, "gradio_app.py"], cwd=repo_dir, check=True)
35
  except subprocess.CalledProcessError as e:
36
  logger.error(f"Gradio 服务异常退出: {e}")
37