Spaces:
Running
on
A10G
Running
on
A10G
Update app.py
Browse files
app.py
CHANGED
@@ -62,6 +62,14 @@ def pix2pix(
|
|
62 |
except Exception as e:
|
63 |
return None, None, error_str(e)
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
def get_frames(video_in):
|
66 |
frames = []
|
67 |
#resize the video
|
|
|
62 |
except Exception as e:
|
63 |
return None, None, error_str(e)
|
64 |
|
65 |
+
def error_str(error, title="Error"):
|
66 |
+
return (
|
67 |
+
f"""#### {title}
|
68 |
+
{error}"""
|
69 |
+
if error
|
70 |
+
else ""
|
71 |
+
)
|
72 |
+
|
73 |
def get_frames(video_in):
|
74 |
frames = []
|
75 |
#resize the video
|