Yntec commited on
Commit
400833e
β€’
1 Parent(s): 9c3a340

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -1
app.py CHANGED
@@ -1,5 +1,24 @@
1
- import os
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  import sys
 
 
 
3
  import gradio as gr
4
  from pathlib import Path
5
  from all_models import models
 
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
24
  from all_models import models