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