Spaces:
Running
Running
yizhangliu
commited on
Commit
•
5eb2692
1
Parent(s):
cd73099
Update app.py
Browse files
app.py
CHANGED
@@ -275,7 +275,15 @@ interface = gr.Interface(fn=predict, inputs="image", outputs="image", sketchpad,
|
|
275 |
interface.launch(share=True)
|
276 |
'''
|
277 |
|
278 |
-
gr.Interface(fn=predict, inputs="image", outputs="image").launch(share=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
279 |
|
280 |
'''
|
281 |
image_blocks = gr.Blocks(css=css)
|
|
|
275 |
interface.launch(share=True)
|
276 |
'''
|
277 |
|
278 |
+
# gr.Interface(fn=predict, inputs="image", outputs="image").launch(share=True)
|
279 |
+
|
280 |
+
demo = gr.Interface(fn=predict,
|
281 |
+
inputs=gr.inputs.Image(source='upload', tool='sketch', elem_id="image_upload", type="pil", label="Upload"),
|
282 |
+
outputs="image",
|
283 |
+
# examples=[["cheetah.jpg"]],
|
284 |
+
)
|
285 |
+
|
286 |
+
demo.launch(share=True)
|
287 |
|
288 |
'''
|
289 |
image_blocks = gr.Blocks(css=css)
|