nightfury commited on
Commit
da68aa8
1 Parent(s): cbf276d

Update app_t.py

Browse files
Files changed (1) hide show
  1. app_t.py +4 -6
app_t.py CHANGED
@@ -1,11 +1,11 @@
1
  import gradio as gr
 
2
  import os
 
3
  print('Get current working directory : ', os.getcwd())
4
  path=os.getcwd()
5
  path=os.getcwd()+"clipseg/"
6
 
7
- import git
8
-
9
  from pathlib import Path
10
  print('working path', Path.cwd())
11
 
@@ -16,7 +16,7 @@ from zipfile import ZipFile
16
  #zf.extractall('clipseg/')
17
  #zf.close()
18
  from zipfile import ZipFile
19
- ZipFile("clipseg-master.zip").extractall("clipseg/")
20
 
21
  import zipfile
22
  def un_zipFiles(path):
@@ -27,9 +27,7 @@ def un_zipFiles(path):
27
  zip_file = zipfile.ZipFile(filePath)
28
  for names in zip_file.namelist():
29
  zip_file.extract(names,path)
30
- zip_file.close()
31
-
32
-
33
 
34
  #download_and_extract_zip_file()
35
  #clone_github_repository()
 
1
  import gradio as gr
2
+ import git
3
  import os
4
+
5
  print('Get current working directory : ', os.getcwd())
6
  path=os.getcwd()
7
  path=os.getcwd()+"clipseg/"
8
 
 
 
9
  from pathlib import Path
10
  print('working path', Path.cwd())
11
 
 
16
  #zf.extractall('clipseg/')
17
  #zf.close()
18
  from zipfile import ZipFile
19
+ ZipFile("clipseg-master.zip").extractall(path)
20
 
21
  import zipfile
22
  def un_zipFiles(path):
 
27
  zip_file = zipfile.ZipFile(filePath)
28
  for names in zip_file.namelist():
29
  zip_file.extract(names,path)
30
+ zip_file.close()
 
 
31
 
32
  #download_and_extract_zip_file()
33
  #clone_github_repository()