Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,14 +1,14 @@
|
|
| 1 |
import os
|
| 2 |
|
| 3 |
os.system("pip uninstall -y gradio")
|
| 4 |
-
os.system("pip install gradio==3.
|
| 5 |
|
| 6 |
os.system('wget "https://public-vigen-video.oss-cn-shanghai.aliyuncs.com/robin/models/RetinaFace-R50.pth" -O weights/RetinaFace-R50.pth')
|
| 7 |
os.system('wget "https://public-vigen-video.oss-cn-shanghai.aliyuncs.com/robin/models/GPEN-BFR-512.pth" -O weights/GPEN-512.pth')
|
| 8 |
os.system('wget "https://public-vigen-video.oss-cn-shanghai.aliyuncs.com/robin/models/GPEN-Colorization-1024.pth" -O weights/GPEN-1024-Color.pth ')
|
| 9 |
os.system('wget "https://public-vigen-video.oss-cn-shanghai.aliyuncs.com/robin/models/realesrnet_x2.pth" -O weights/realesrnet_x2.pth ')
|
| 10 |
os.system('wget "https://public-vigen-video.oss-cn-shanghai.aliyuncs.com/robin/models/GPEN-Inpainting-1024.pth" -O weights/GPEN-Inpainting-1024.pth ')
|
| 11 |
-
jksp= os.environ['
|
| 12 |
os.system(f'wget "{jksp}" -O weights/GPEN-BFR-2048.pth')
|
| 13 |
|
| 14 |
import gradio as gr
|
|
|
|
| 1 |
import os
|
| 2 |
|
| 3 |
os.system("pip uninstall -y gradio")
|
| 4 |
+
os.system("pip install gradio==3.50")
|
| 5 |
|
| 6 |
os.system('wget "https://public-vigen-video.oss-cn-shanghai.aliyuncs.com/robin/models/RetinaFace-R50.pth" -O weights/RetinaFace-R50.pth')
|
| 7 |
os.system('wget "https://public-vigen-video.oss-cn-shanghai.aliyuncs.com/robin/models/GPEN-BFR-512.pth" -O weights/GPEN-512.pth')
|
| 8 |
os.system('wget "https://public-vigen-video.oss-cn-shanghai.aliyuncs.com/robin/models/GPEN-Colorization-1024.pth" -O weights/GPEN-1024-Color.pth ')
|
| 9 |
os.system('wget "https://public-vigen-video.oss-cn-shanghai.aliyuncs.com/robin/models/realesrnet_x2.pth" -O weights/realesrnet_x2.pth ')
|
| 10 |
os.system('wget "https://public-vigen-video.oss-cn-shanghai.aliyuncs.com/robin/models/GPEN-Inpainting-1024.pth" -O weights/GPEN-Inpainting-1024.pth ')
|
| 11 |
+
jksp= os.environ['SELFIE']
|
| 12 |
os.system(f'wget "{jksp}" -O weights/GPEN-BFR-2048.pth')
|
| 13 |
|
| 14 |
import gradio as gr
|