Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ def predict(image):
|
|
| 17 |
filepath = 'caption.mp3'
|
| 18 |
return caption, filepath
|
| 19 |
|
| 20 |
-
|
| 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=
|
| 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,
|