Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def inference(img,mode):
|
|
40 |
basewidth = 256
|
41 |
wpercent = (basewidth/float(img.size[0]))
|
42 |
hsize = int((float(img.size[1])*float(wpercent)))
|
43 |
-
img = img.resize((basewidth,hsize), Image.LANCZOS)
|
44 |
img.save(INPUT_DIR + "1.jpg", "JPEG")
|
45 |
if mode == "base":
|
46 |
run_cmd("python inference_realesrgan.py -n RealESRGAN_x4plus -i "+ INPUT_DIR + " -o " + OUTPUT_DIR)
|
@@ -63,6 +63,6 @@ gr.Interface(
|
|
63 |
description=description,
|
64 |
article=article,
|
65 |
examples=[
|
66 |
-
['bear.jpg','base'],
|
67 |
-
['anime.png','anime']
|
68 |
]).launch()
|
|
|
40 |
basewidth = 256
|
41 |
wpercent = (basewidth/float(img.size[0]))
|
42 |
hsize = int((float(img.size[1])*float(wpercent)))
|
43 |
+
#img = img.resize((basewidth,hsize), Image.LANCZOS)
|
44 |
img.save(INPUT_DIR + "1.jpg", "JPEG")
|
45 |
if mode == "base":
|
46 |
run_cmd("python inference_realesrgan.py -n RealESRGAN_x4plus -i "+ INPUT_DIR + " -o " + OUTPUT_DIR)
|
|
|
63 |
description=description,
|
64 |
article=article,
|
65 |
examples=[
|
66 |
+
#['bear.jpg','base'],
|
67 |
+
#['anime.png','anime']
|
68 |
]).launch()
|