Spaces:
Sleeping
Sleeping
Ahsen Khaliq
commited on
Commit
·
f7fbf23
1
Parent(s):
d894966
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def inference(img,mode):
|
|
43 |
if mode == "base":
|
44 |
run_cmd("python inference_realesrgan.py --model_path RealESRGAN_x4plus.pth --input "+ INPUT_DIR + " --output " + OUTPUT_DIR + " --netscale 4 --outscale 4")
|
45 |
else:
|
46 |
-
os.system("python inference_realesrgan.py
|
47 |
return os.path.join(OUTPUT_DIR, "1_out.jpg")
|
48 |
|
49 |
|
|
|
43 |
if mode == "base":
|
44 |
run_cmd("python inference_realesrgan.py --model_path RealESRGAN_x4plus.pth --input "+ INPUT_DIR + " --output " + OUTPUT_DIR + " --netscale 4 --outscale 4")
|
45 |
else:
|
46 |
+
os.system("python inference_realesrgan.py --model_path RealESRGAN_x4plus_anime_6B.pth --input "+ INPUT_DIR + " --output " + OUTPUT_DIR)
|
47 |
return os.path.join(OUTPUT_DIR, "1_out.jpg")
|
48 |
|
49 |
|