fffiloni commited on
Commit
c3d5a7d
1 Parent(s): 7c8263a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
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