Spaces:
Runtime error
Runtime error
Update app_t.py
Browse files
app_t.py
CHANGED
@@ -1,6 +1,11 @@
|
|
1 |
-
import zipfile
|
2 |
-
with zipfile.ZipFile("https://huggingface.co/spaces/nightfury/SD-InPainting/blob/main/clipseg-master.zip", 'r') as zip_ref:
|
3 |
-
zip_ref.extractall("home/user/app/")
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
import gradio as gr
|
6 |
|
@@ -20,7 +25,7 @@ class CloneProgress(RemoteProgress):
|
|
20 |
print(message)
|
21 |
|
22 |
print('Cloning into %s' % git_root)
|
23 |
-
git.Repo.clone_from('https://github.com/ThereforeGames/txt2mask/repositories/clipseg.git', 'home/user/app/
|
24 |
branch='master', progress=CloneProgress())
|
25 |
|
26 |
#-------------
|
|
|
1 |
+
#import zipfile
|
2 |
+
#with zipfile.ZipFile("https://huggingface.co/spaces/nightfury/SD-InPainting/blob/main/clipseg-master.zip", 'r') as zip_ref:
|
3 |
+
# zip_ref.extractall("home/user/app/")
|
4 |
+
|
5 |
+
from zipfile import ZipFile
|
6 |
+
zf = ZipFile('home/user/app/clipseg-master.zip', 'r')
|
7 |
+
zf.extractall('home/user/app/clipseg')
|
8 |
+
zf.close()
|
9 |
|
10 |
import gradio as gr
|
11 |
|
|
|
25 |
print(message)
|
26 |
|
27 |
print('Cloning into %s' % git_root)
|
28 |
+
git.Repo.clone_from('https://github.com/ThereforeGames/txt2mask/repositories/clipseg.git', 'home/user/app/clipseg1',
|
29 |
branch='master', progress=CloneProgress())
|
30 |
|
31 |
#-------------
|