nightfury commited on
Commit
c305a03
1 Parent(s): 7c04909

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -23,12 +23,9 @@ from torchvision import transforms
23
  #from huggingface_hub import Repository
24
  #with Repository(local_dir="clipseg", clone_from="ThereforeGames/txt2mask/repositories/clipseg/")
25
 
26
- from huggingface_hub import Repository
27
- repo = Repository()
28
-
29
- #from huggingface_hub import HfApi
30
- #api = HfApi()
31
- repo.upload_folder(
32
  folder_path="clipseg",
33
  path_in_repo="ThereforeGames/txt2mask/repositories/clipseg/",
34
  repo_id="ThereforeGames/txt2mask",
 
23
  #from huggingface_hub import Repository
24
  #with Repository(local_dir="clipseg", clone_from="ThereforeGames/txt2mask/repositories/clipseg/")
25
 
26
+ from huggingface_hub import HfApi
27
+ api = HfApi()
28
+ api.upload_folder(
 
 
 
29
  folder_path="clipseg",
30
  path_in_repo="ThereforeGames/txt2mask/repositories/clipseg/",
31
  repo_id="ThereforeGames/txt2mask",