robocan commited on
Commit
3510bf6
·
verified ·
1 Parent(s): 9b889da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -1,10 +1,15 @@
1
  import os
 
2
 
3
  # Retrieve the token from the environment variables
4
  token = os.environ.get("token")
5
 
6
  # Clone the repository using the token
7
- !git clone https://robocan:{token}@huggingface.co/robocan/GeoG_City /SVD
 
 
 
 
8
 
9
  import torch
10
  from torch.utils.data import Dataset, DataLoader
 
1
  import os
2
+ import subprocess
3
 
4
  # Retrieve the token from the environment variables
5
  token = os.environ.get("token")
6
 
7
  # Clone the repository using the token
8
+ repo_url = f"https://robocan:{token}@huggingface.co/robocan/GeoG_City"
9
+ destination_dir = "/SVD"
10
+
11
+ # Run the git clone command using subprocess
12
+ subprocess.run(["git", "clone", repo_url, destination_dir], check=True)
13
 
14
  import torch
15
  from torch.utils.data import Dataset, DataLoader