Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ import moviepy
|
|
9 |
from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip
|
10 |
import moviepy.video.io.ImageSequenceClip
|
11 |
from moviepy.editor import *
|
12 |
-
import
|
13 |
uid=uuid.uuid4()
|
14 |
if not os.path.exists(f'{uid}'): os.makedirs(f'{uid}')
|
15 |
if not os.path.exists(f'{uid}-frames'): os.makedirs(f'{uid}-frames')
|
@@ -241,7 +241,7 @@ def check_load(inp_url,outp_vid,hid_box,start_f,end_f):
|
|
241 |
#outp_vid.change(echo_fn,outp_vid,[out_trim])
|
242 |
def process_image_1(image):
|
243 |
#out = esr(img=image, model_name="realesr-general-x4v3", denoise_strength=0.5, face_enhance=False, outscale=2)
|
244 |
-
out = realesrgan(image, "realesr-general-x4v3", 0.5, False, 2)
|
245 |
print (out)
|
246 |
out = Image.open(out)
|
247 |
return out
|
|
|
9 |
from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip
|
10 |
import moviepy.video.io.ImageSequenceClip
|
11 |
from moviepy.editor import *
|
12 |
+
import real_esrgan_mod
|
13 |
uid=uuid.uuid4()
|
14 |
if not os.path.exists(f'{uid}'): os.makedirs(f'{uid}')
|
15 |
if not os.path.exists(f'{uid}-frames'): os.makedirs(f'{uid}-frames')
|
|
|
241 |
#outp_vid.change(echo_fn,outp_vid,[out_trim])
|
242 |
def process_image_1(image):
|
243 |
#out = esr(img=image, model_name="realesr-general-x4v3", denoise_strength=0.5, face_enhance=False, outscale=2)
|
244 |
+
out = real_esrgan_mod.realesrgan(image, "realesr-general-x4v3", 0.5, False, 2)
|
245 |
print (out)
|
246 |
out = Image.open(out)
|
247 |
return out
|