Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|