yizhangliu commited on
Commit
d8dc6b8
1 Parent(s): 2b438fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -279,13 +279,14 @@ interface.launch(share=True)
279
  # gr.Interface(fn=predict, inputs="image", outputs="image").launch(share=True)
280
 
281
  image = gr.inputs.Image(source='upload', tool='sketch', type="pil", label="Upload")# .style(height=400)
282
- image_blocks = gr.Interface(fn=predict,
283
- inputs=[image],
284
- outputs=[image],
 
285
  # examples=[["cheetah.jpg"]],
286
  )
287
 
288
- image_blocks.launch()
289
 
290
  '''
291
  image_blocks = gr.Blocks(css=css)
 
279
  # gr.Interface(fn=predict, inputs="image", outputs="image").launch(share=True)
280
 
281
  image = gr.inputs.Image(source='upload', tool='sketch', type="pil", label="Upload")# .style(height=400)
282
+ image_blocks = gr.Interface(
283
+ fn=predict,
284
+ inputs=image,
285
+ outputs=image,
286
  # examples=[["cheetah.jpg"]],
287
  )
288
 
289
+ image_blocks.launch(inline=True)
290
 
291
  '''
292
  image_blocks = gr.Blocks(css=css)