OriLib commited on
Commit
4c550a6
1 Parent(s): ce8130a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -62,10 +62,10 @@ chameleon = load_img("giraffe.jpg", output_type="pil")
62
  url = "http://farm9.staticflickr.com/8488/8228323072_76eeddfea3_z.jpg"
63
 
64
  tab1 = gr.Interface(
65
- fn, inputs=image, outputs=[slider1, png_file], examples=[chameleon], api_name="image"
66
  )
67
 
68
- tab2 = gr.Interface(fn, inputs=text, outputs=[slider2, png_file], examples=[url], api_name="text")
69
  tab3 = gr.Interface(process_file, inputs=image2, outputs=png_file, examples=["giraffe.jpg"], api_name="png")
70
 
71
 
 
62
  url = "http://farm9.staticflickr.com/8488/8228323072_76eeddfea3_z.jpg"
63
 
64
  tab1 = gr.Interface(
65
+ fn, inputs=image, outputs=[slider1, gr.File(label="output png file")], examples=[chameleon], api_name="image"
66
  )
67
 
68
+ tab2 = gr.Interface(fn, inputs=text, outputs=[slider2, gr.File(label="output png file")], examples=[url], api_name="text")
69
  tab3 = gr.Interface(process_file, inputs=image2, outputs=png_file, examples=["giraffe.jpg"], api_name="png")
70
 
71