abdulsamad commited on
Commit
6a20c9d
·
1 Parent(s): 8f111aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -42,7 +42,16 @@ demo = gr.Interface(fn=captioner,
42
  outputs=[gr.Textbox(label="Caption")],
43
  title="Image Captioning with BLIP",
44
  description="Caption any image using the BLIP model",
45
- allow_flagging="never",
46
- examples=["christmas_dog.jpeg", "bird_flight.jpeg", "cow.jpeg"])
 
 
 
 
 
 
 
 
 
47
 
48
  demo.launch(share=True, server_port=int(os.environ['PORT1']))
 
42
  outputs=[gr.Textbox(label="Caption")],
43
  title="Image Captioning with BLIP",
44
  description="Caption any image using the BLIP model",
45
+ allow_flagging="never")
46
+
47
+
48
+
49
+ #demo = gr.Interface(fn=captioner,
50
+ # inputs=[gr.Image(label="Upload image", type="pil")],
51
+ #// outputs=[gr.Textbox(label="Caption")],
52
+ # // title="Image Captioning with BLIP",
53
+ # // description="Caption any image using the BLIP model",
54
+ # // allow_flagging="never",
55
+ # // examples=["christmas_dog.jpeg", "bird_flight.jpeg", "cow.jpeg"])
56
 
57
  demo.launch(share=True, server_port=int(os.environ['PORT1']))