SRDdev commited on
Commit
bf20e3a
1 Parent(s): f96b4e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,7 +17,7 @@ def predict(image):
17
  filepath = 'caption.mp3'
18
  return caption, filepath
19
 
20
- inputs = gr.input.Image(label="Upload any Image")
21
  outputs = [
22
  gr.components.Textbox(type="text",label="Captions"),
23
  gr.components.Audio(type="filepath",label="audio")
@@ -34,7 +34,7 @@ article="""Echo Sense is an innovative image captioning application that utilize
34
 
35
  interface = gr.Interface(
36
  fn=predict,
37
- inputs=inputs,
38
  outputs=outputs,
39
  title="",
40
  description=description,
 
17
  filepath = 'caption.mp3'
18
  return caption, filepath
19
 
20
+ inp = gr.inputs.Image(label="Upload any Image")
21
  outputs = [
22
  gr.components.Textbox(type="text",label="Captions"),
23
  gr.components.Audio(type="filepath",label="audio")
 
34
 
35
  interface = gr.Interface(
36
  fn=predict,
37
+ inputs=inp,
38
  outputs=outputs,
39
  title="",
40
  description=description,