Spaces:
Runtime error
Runtime error
Update app_t.py
Browse files
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 |
-
|
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 |
-
|
99 |
-
|
|
|
|
|
|
|
|
|
|
|
100 |
|
101 |
-
|
102 |
-
|
103 |
|
104 |
-
|
105 |
-
|
106 |
-
|
|
|
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
|