root commited on
Commit
4cc99b7
·
1 Parent(s): f9e2d84
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -16,12 +16,13 @@ from download import download_model
16
  # 下载模型
17
  APP_DIR = op.dirname(op.abspath(__file__))
18
  download_model(APP_DIR)
19
- download_model(op.join(APP_DIR, "ckpt"), repo_id="waytan22/SongGeneration-v1.5-beta", revision="db10f47")
 
20
  print("Successful downloaded model.")
21
 
22
  # 模型初始化
23
  from levo_inference import LeVoInference
24
- MODEL = LeVoInference(op.join(APP_DIR, "ckpt", "SongGeneration-v1.5-beta"))
25
 
26
  EXAMPLE_LYRICS = """
27
  [intro-medium]
 
16
  # 下载模型
17
  APP_DIR = op.dirname(op.abspath(__file__))
18
  download_model(APP_DIR)
19
+ large_model_path = op.join(APP_DIR, "ckpt", "SongGeneration-v1.5-beta")
20
+ download_model(large_model_path, repo_id="waytan22/SongGeneration-v1.5-beta", revision="db10f47")
21
  print("Successful downloaded model.")
22
 
23
  # 模型初始化
24
  from levo_inference import LeVoInference
25
+ MODEL = LeVoInference(large_model_path)
26
 
27
  EXAMPLE_LYRICS = """
28
  [intro-medium]