wintergw commited on
Commit
aef2517
·
verified ·
1 Parent(s): 41d170f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -46,14 +46,14 @@ sys.path.append(repo_dir)
46
 
47
 
48
  # Download specific files (if snapshot_download wasn't used)
49
- app_path = hf_hub_download(
50
- repo_id=REPO_ID,
51
- filename="app.py",
52
- repo_type=REPO_TYPE
53
- )
54
 
55
  # Load and execute `app.py`
56
- spec_app = importlib.util.spec_from_file_location("*", app_path)
57
  app_module = importlib.util.module_from_spec(spec_app)
58
  spec_app.loader.exec_module(app_module)
59
  # Now you can use functions from utils_module
 
46
 
47
 
48
  # Download specific files (if snapshot_download wasn't used)
49
+ # app_path = hf_hub_download(
50
+ # repo_id=REPO_ID,
51
+ # filename="app.py",
52
+ # repo_type=REPO_TYPE
53
+ # )
54
 
55
  # Load and execute `app.py`
56
+ spec_app = importlib.util.spec_from_file_location("*", repo_dir)
57
  app_module = importlib.util.module_from_spec(spec_app)
58
  spec_app.loader.exec_module(app_module)
59
  # Now you can use functions from utils_module