huaweilin commited on
Commit
0c251ef
·
1 Parent(s): 4968738
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -11,14 +11,14 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
11
  print(f"Running on: {device}")
12
 
13
  MODEL_DIR = "./VTBench_models"
14
- if not os.path.exists(MODEL_DIR):
15
- print("Downloading VTBench_models from Hugging Face...")
16
- snapshot_download(
17
- repo_id="huaweilin/VTBench_models",
18
- local_dir=MODEL_DIR,
19
- local_dir_use_symlinks=False
20
- )
21
- print("Download complete.")
22
 
23
  example_image_paths = [f"assets/app_examples/{i}.png" for i in range(0, 5)]
24
 
 
11
  print(f"Running on: {device}")
12
 
13
  MODEL_DIR = "./VTBench_models"
14
+ # if not os.path.exists(MODEL_DIR):
15
+ # print("Downloading VTBench_models from Hugging Face...")
16
+ # snapshot_download(
17
+ # repo_id="huaweilin/VTBench_models",
18
+ # local_dir=MODEL_DIR,
19
+ # local_dir_use_symlinks=False
20
+ # )
21
+ # print("Download complete.")
22
 
23
  example_image_paths = [f"assets/app_examples/{i}.png" for i in range(0, 5)]
24