Kangarroar commited on
Commit
f1eb099
1 Parent(s): 9836b3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -37,4 +37,14 @@ with open("/home/user/.local/lib/python3.8/site-packages/torch/serialization.py"
37
  print("Replaced")
38
  #with open("/home/user/.local/lib/python3.8/site-packages/torch/serialization.py") as f:
39
  # text = f.read()
40
- #print(text)
 
 
 
 
 
 
 
 
 
 
 
37
  print("Replaced")
38
  #with open("/home/user/.local/lib/python3.8/site-packages/torch/serialization.py") as f:
39
  # text = f.read()
40
+ #print(text)
41
+ ############
42
+ logging.getLogger('numba').setLevel(logging.WARNING)
43
+
44
+ # 工程文件夹名,训练时用的那个
45
+ project_name = "Unnamed"
46
+ model_path = f'./checkpoints/Unnamed/model_ckpt_steps_192000.ckpt'
47
+ config_path=f'./checkpoints/Unnamed/config.yaml'
48
+ hubert_gpu=False
49
+ svc_model = Svc(project_name,config_path,hubert_gpu, model_path)
50
+ print('model loaded')