Ahsen Khaliq commited on
Commit
dea0ca1
1 Parent(s): 3e80cbf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import os
 
2
  os.system("wget https://public-vigen-video.oss-cn-shanghai.aliyuncs.com/robin/models/RetinaFace-R50.pth -P ./weights/")
3
  os.system("wget https://public-vigen-video.oss-cn-shanghai.aliyuncs.com/robin/models/GPEN-BFR-512.pth -P ./weights/")
4
  os.system("wget https://public-vigen-video.oss-cn-shanghai.aliyuncs.com/robin/models/ParseNet-latest.pth -P ./weights/")
@@ -133,6 +134,7 @@ gr.Interface(
133
  description=description,
134
  article=article,
135
  examples=[
136
- ['sample.jpg']
137
  ],
138
- ).launch(enable_queue=True,cache_examples=False)
 
 
1
  import os
2
+ os.system("pip install gradio==2.5.3")
3
  os.system("wget https://public-vigen-video.oss-cn-shanghai.aliyuncs.com/robin/models/RetinaFace-R50.pth -P ./weights/")
4
  os.system("wget https://public-vigen-video.oss-cn-shanghai.aliyuncs.com/robin/models/GPEN-BFR-512.pth -P ./weights/")
5
  os.system("wget https://public-vigen-video.oss-cn-shanghai.aliyuncs.com/robin/models/ParseNet-latest.pth -P ./weights/")
 
134
  description=description,
135
  article=article,
136
  examples=[
137
+ ['sample.png']
138
  ],
139
+ enable_queue=True
140
+ ).launch()