yizhangliu commited on
Commit
3f34a00
1 Parent(s): d7805d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -266,7 +266,12 @@ css = '''
266
  display: none !important;
267
  }
268
  '''
 
 
 
 
269
 
 
270
  image_blocks = gr.Blocks(css=css)
271
  with image_blocks as demo:
272
  gr.HTML(read_content("header.html"))
@@ -309,4 +314,5 @@ with image_blocks as demo:
309
  """
310
  )
311
 
312
- image_blocks.launch()
 
 
266
  display: none !important;
267
  }
268
  '''
269
+ sketchpad = Sketchpad()
270
+ imageupload = ImageUplaod()
271
+ interface = gr.Interface(fn=predict, inputs="image", outputs="image", sketchpad, imageupload)
272
+ interface.launch(share=True)
273
 
274
+ '''
275
  image_blocks = gr.Blocks(css=css)
276
  with image_blocks as demo:
277
  gr.HTML(read_content("header.html"))
 
314
  """
315
  )
316
 
317
+ image_blocks.launch(share=True)
318
+ '''