innoai commited on
Commit
b6c1045
·
verified ·
1 Parent(s): 5de8b22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -68,11 +68,11 @@ chameleon = load_img("giraffe.jpg", output_type="pil")
68
  url = "http://farm9.staticflickr.com/8488/8228323072_76eeddfea3_z.jpg"
69
 
70
  tab1 = gr.Interface(
71
- fn, inputs=image, outputs=[slider1, gr.File(label="output png file")], examples=[chameleon], api_name="image"
72
  )
73
 
74
- tab2 = gr.Interface(fn, inputs=text, outputs=[slider2, gr.File(label="output png file")], examples=[url], api_name="text")
75
- tab3 = gr.Interface(process_file, inputs=image2, outputs=png_file, examples=["giraffe.jpg"], api_name="png")
76
 
77
 
78
  demo = gr.TabbedInterface(
@@ -80,4 +80,4 @@ demo = gr.TabbedInterface(
80
  )
81
 
82
  if __name__ == "__main__":
83
- demo.launch(show_error=True)
 
68
  url = "http://farm9.staticflickr.com/8488/8228323072_76eeddfea3_z.jpg"
69
 
70
  tab1 = gr.Interface(
71
+ fn, inputs=image, outputs=[slider1, gr.File(label="output png file")], examples=[chameleon],api_name=False
72
  )
73
 
74
+ tab2 = gr.Interface(fn, inputs=text, outputs=[slider2, gr.File(label="output png file")], examples=[url], api_name=False)
75
+ tab3 = gr.Interface(process_file, inputs=image2, outputs=png_file, examples=["giraffe.jpg"], api_name=False)
76
 
77
 
78
  demo = gr.TabbedInterface(
 
80
  )
81
 
82
  if __name__ == "__main__":
83
+ demo.launch(show_error=True,show_api=False)