Yntec commited on
Commit
e9ee4ce
β€’
1 Parent(s): 28b242e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py CHANGED
@@ -1,6 +1,23 @@
1
  import os
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  import sys
 
 
4
 
5
  import gradio as gr
6
  from pathlib import Path
 
1
  import os
2
 
3
+ def p(command):
4
+ print("EXEC: " + command)
5
+ os.system(command)
6
+
7
+ p("mkdir _gradio")
8
+ p("mv Gradio.zip _gradio")
9
+ os.chdir("_gradio")
10
+
11
+ from zipfile import ZipFile
12
+
13
+ z = ZipFile("Gradio.zip")
14
+ z.extractall()
15
+ p("pip uninstall gradio")
16
+ p("pip install -e .")
17
+ print(os.getcwd())
18
  import sys
19
+ sys.path.append(os.getcwd())
20
+ os.chdir("..")
21
 
22
  import gradio as gr
23
  from pathlib import Path