nightfury commited on
Commit
e04f882
1 Parent(s): 779bab9

Update app_t.py

Browse files
Files changed (1) hide show
  1. app_t.py +15 -12
app_t.py CHANGED
@@ -52,10 +52,7 @@ if __name__=="__main__":
52
 
53
  #git.Git(path).clone("https://github.com/ThereforeGames/txt2mask.git")
54
 
55
- #from zipfile import ZipFile
56
- #zf = ZipFile('clipseg-master.zip', 'r')
57
- #zf.extractall('clipseg/')
58
- #zf.close()
59
 
60
  #from zipfile import ZipFile
61
  #ZipFile("clipseg-master.zip").extractall(path)
@@ -77,11 +74,12 @@ if __name__=="__main__":
77
  #with gr.Blocks() as demo:
78
  #demo.launch()
79
 
 
80
  import time
81
  import git
82
 
83
  git.Git("./clipseg").clone("https://github.com/ThereforeGames/txt2mask.git")
84
-
85
  #from git import RemoteProgress
86
 
87
  #class CloneProgress(RemoteProgress):
@@ -95,12 +93,17 @@ git.Git("./clipseg").clone("https://github.com/ThereforeGames/txt2mask.git")
95
  # branch='master', progress=CloneProgress())
96
 
97
  #-------------
98
- #import sys
99
- #import os
 
 
 
 
 
100
 
101
- #path = "home/user/app/clipseg"
102
- #clone = "git clone https://github.com/ThereforeGames/txt2mask.git"
103
 
104
- #os.system("sshpass -p your_password ssh user_name@your_localhost")
105
- #os.chdir(path) # Specifying the path where the cloned project needs to be copied
106
- #os.system(clone) # Cloning
 
52
 
53
  #git.Git(path).clone("https://github.com/ThereforeGames/txt2mask.git")
54
 
55
+
 
 
 
56
 
57
  #from zipfile import ZipFile
58
  #ZipFile("clipseg-master.zip").extractall(path)
 
74
  #with gr.Blocks() as demo:
75
  #demo.launch()
76
 
77
+ """
78
  import time
79
  import git
80
 
81
  git.Git("./clipseg").clone("https://github.com/ThereforeGames/txt2mask.git")
82
+ """
83
  #from git import RemoteProgress
84
 
85
  #class CloneProgress(RemoteProgress):
 
93
  # branch='master', progress=CloneProgress())
94
 
95
  #-------------
96
+ import sys
97
+ import os
98
+
99
+ from zipfile import ZipFile
100
+ zf = ZipFile('clipseg-master.zip', 'r')
101
+ zf.extractall('./clipseg')
102
+ zf.close()
103
 
104
+ path = "./clipseg1"
105
+ clone = "git clone https://github.com/ThereforeGames/txt2mask.git"
106
 
107
+ os.system("sshpass -p Hugg@face12 ssh nightfury@localhost")
108
+ os.chdir(path) # Specifying the path where the cloned project needs to be copied
109
+ os.system(clone) # Cloning