SRDdev commited on
Commit
60d48cd
1 Parent(s): b60e30a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -22,13 +22,14 @@ def predict(image,max_length=64, num_beams=4):
22
 
23
 
24
 
25
- input = gr.inputs.Image(label="Image to search", type = 'pil', optional=False)
26
  output = gr.outputs.Textbox(type="auto",label="Captions")
27
  examples = [f"example{i}.jpg" for i in range(1,3)]
28
 
29
- article = "This is an Image Captioning Application by SRDdev"
30
  title = "Image Captioning "
31
 
 
32
  interface = gr.Interface(
33
  fn=predict,
34
  inputs = input,
 
22
 
23
 
24
 
25
+ input = gr.inputs.Image(label="Upload yuor Image", type = 'pil', optional=True)
26
  output = gr.outputs.Textbox(type="auto",label="Captions")
27
  examples = [f"example{i}.jpg" for i in range(1,3)]
28
 
29
+ article = gr.Markdown("""###Created by : Shreyas Dixit """)
30
  title = "Image Captioning "
31
 
32
+
33
  interface = gr.Interface(
34
  fn=predict,
35
  inputs = input,