arjunyonjan commited on
Commit
f371baf
·
verified ·
1 Parent(s): dc51022

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -32,7 +32,9 @@ def swap_face(source_img, target_img):
32
  out="/tmp/swapped.jpg"
33
  cv2.imwrite(out,res)
34
  return out
35
- raise
 
 
36
  with gr.Blocks() as demo:
37
  gr.Markdown("# FaceFusion Zero")
38
  with gr.Row():
 
32
  out="/tmp/swapped.jpg"
33
  cv2.imwrite(out,res)
34
  return out
35
+ except Exception as e:
36
+ import traceback
37
+ raise gr.Error(traceback.format_exc())
38
  with gr.Blocks() as demo:
39
  gr.Markdown("# FaceFusion Zero")
40
  with gr.Row():