krrishD commited on
Commit
4301863
·
1 Parent(s): b23141a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -82,5 +82,14 @@ def main(user_image):
82
  # sample the new
83
  return sample_images(init_image, pil_inverted_mask)
84
 
85
- demo = gr.Interface(main, gr.File(), "image")
 
 
 
 
 
 
 
 
 
86
  demo.launch(debug=True)
 
82
  # sample the new
83
  return sample_images(init_image, pil_inverted_mask)
84
 
85
+ with gr.Blocks() as demo:
86
+ gr.Markdown(
87
+ """
88
+ # Upload a selfie/image of yourself/your friends, and get a funny, professional headshot :)
89
+ """)
90
+ inp = gr.File()
91
+ out = gr.Image()
92
+ inp.change(main, inp, out)
93
+
94
+ #demo = gr.Interface(main, gr.File(), "image")
95
  demo.launch(debug=True)