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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -279,13 +279,13 @@ 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
- demo = gr.Interface(fn=predict,
283
  inputs=[image],
284
  outputs=[image],
285
  # examples=[["cheetah.jpg"]],
286
  )
287
 
288
- demo.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(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)