Spaces:
Sleeping
Sleeping
zhiweili
commited on
Commit
•
44f4bf1
1
Parent(s):
84474bd
fix nosuch file error
Browse files- app_gfp.py +2 -0
app_gfp.py
CHANGED
@@ -19,6 +19,8 @@ if not os.path.exists('RestoreFormer.pth'):
|
|
19 |
if not os.path.exists('CodeFormer.pth'):
|
20 |
os.system("wget https://github.com/TencentARC/GFPGAN/releases/download/v1.3.4/CodeFormer.pth -P .")
|
21 |
|
|
|
|
|
22 |
@spaces.GPU(duration=10)
|
23 |
def enhance(
|
24 |
img_path:str,
|
|
|
19 |
if not os.path.exists('CodeFormer.pth'):
|
20 |
os.system("wget https://github.com/TencentARC/GFPGAN/releases/download/v1.3.4/CodeFormer.pth -P .")
|
21 |
|
22 |
+
os.makedirs('output', exist_ok=True)
|
23 |
+
|
24 |
@spaces.GPU(duration=10)
|
25 |
def enhance(
|
26 |
img_path:str,
|