SRDdev commited on
Commit
877b91d
1 Parent(s): 49fe0a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -26,13 +26,12 @@ input = gr.inputs.Image(label="Upload your 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 = "Image captioning application made using transformers"
30
  title = "Image Captioning 🖼️"
31
 
32
- gr.Markdown("""
33
  ### Created By : Shreyas Dixit
34
- Transormer uesd : nlpconnect/vit-gpt2-image-captioning
35
- """)
36
 
37
  interface = gr.Interface(
38
  fn=predict,
@@ -41,6 +40,7 @@ interface = gr.Interface(
41
  outputs=output,
42
  examples = examples,
43
  title=title,
44
- description=article,
 
45
  )
46
  interface.launch(debug=True)
 
26
  output = gr.outputs.Textbox(type="auto",label="Captions")
27
  examples = [f"example{i}.jpg" for i in range(1,3)]
28
 
29
+ description= "Image captioning application made using transformers"
30
  title = "Image Captioning 🖼️"
31
 
32
+ article = gr.Markdown("""
33
  ### Created By : Shreyas Dixit
34
+ Transormer uesd : nlpconnect/vit-gpt2-image-captioning """)
 
35
 
36
  interface = gr.Interface(
37
  fn=predict,
 
40
  outputs=output,
41
  examples = examples,
42
  title=title,
43
+ description=description,
44
+ article = article,
45
  )
46
  interface.launch(debug=True)