JanuaryDesk commited on
Commit
870e6ac
·
1 Parent(s): d01071c
Files changed (1) hide show
  1. app.py +14 -0
app.py CHANGED
@@ -6,6 +6,19 @@ def p(command):
6
  print("EXEC: " + command)
7
  os.system(command)
8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  p("wget -qO- https://get.pnpm.io/install.sh | sh -")
10
  p("git clone https://github.com/yiyuezhuo/gradio --branch cmo_pinned")
11
  os.chdir("gradio")
@@ -14,6 +27,7 @@ p("pnpm build")
14
  p("pip uninstall -y gradio")
15
  p("pip install -e .")
16
  os.chdir("..")
 
17
 
18
  # os.system("pip uninstall -y gradio")
19
  # os.system("pip install git+https://github.com/yiyuezhuo/gradio@cmo_pinned")
 
6
  print("EXEC: " + command)
7
  os.system(command)
8
 
9
+ p("mkdir gradio")
10
+ p("mv gradio.zio gradio")
11
+ os.chdir("gradio")
12
+
13
+ from zipfile import ZipFile
14
+
15
+ z = ZipFile("gradio.zip")
16
+ z.extractall()
17
+ p("pip uninstall gradio")
18
+ p("pip install -e .")
19
+ os.chdir("..")
20
+
21
+ """
22
  p("wget -qO- https://get.pnpm.io/install.sh | sh -")
23
  p("git clone https://github.com/yiyuezhuo/gradio --branch cmo_pinned")
24
  os.chdir("gradio")
 
27
  p("pip uninstall -y gradio")
28
  p("pip install -e .")
29
  os.chdir("..")
30
+ """
31
 
32
  # os.system("pip uninstall -y gradio")
33
  # os.system("pip install git+https://github.com/yiyuezhuo/gradio@cmo_pinned")