jaimin commited on
Commit
000d1ec
1 Parent(s): 23c680a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -23,7 +23,7 @@ def predict(image,max_length=64, num_beams=4):
23
 
24
 
25
  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,7)]
28
 
29
  title = "Image To Text"
@@ -31,9 +31,7 @@ title = "Image To Text"
31
  interface = gr.Interface(
32
  fn=predict,
33
  inputs = input,
34
- theme="grass",
35
  outputs=output,
36
- examples = examples,
37
  title=title,
38
  )
39
  interface.launch(debug=True)
 
23
 
24
 
25
  input = gr.inputs.Image(label="Upload your Image", type = 'pil', optional=True)
26
+ output = gr.outputs.Textbox(label="Captions")
27
  examples = [f"example{i}.jpg" for i in range(1,7)]
28
 
29
  title = "Image To Text"
 
31
  interface = gr.Interface(
32
  fn=predict,
33
  inputs = input,
 
34
  outputs=output,
 
35
  title=title,
36
  )
37
  interface.launch(debug=True)