Spaces:
Sleeping
Sleeping
rexsimiloluwah
commited on
Commit
•
cd3b42f
1
Parent(s):
9af54b6
chore: added examples to the apps
Browse files- apps/asr.py +2 -1
- apps/image_captioning.py +2 -1
- apps/object_detection.py +2 -1
- apps/summarizer.py +1 -1
- examples/image1.jpg +0 -0
- examples/sample_audio_1.wav +0 -0
apps/asr.py
CHANGED
@@ -43,5 +43,6 @@ file_transcribe_interface = gr.Interface(
|
|
43 |
inputs=gr.Audio(sources="upload", type="filepath"),
|
44 |
outputs=gr.Textbox(label="Transcription", lines=3),
|
45 |
allow_flagging="never",
|
46 |
-
title="Transcribe Audio from a File"
|
|
|
47 |
)
|
|
|
43 |
inputs=gr.Audio(sources="upload", type="filepath"),
|
44 |
outputs=gr.Textbox(label="Transcription", lines=3),
|
45 |
allow_flagging="never",
|
46 |
+
title="Transcribe Audio from a File",
|
47 |
+
examples=["./examples/sample_audio_1.wav"]
|
48 |
)
|
apps/image_captioning.py
CHANGED
@@ -17,5 +17,6 @@ img_captioning_interface = gr.Interface(
|
|
17 |
inputs=gr.Image(label="Input Image", type="pil"),
|
18 |
outputs=gr.Textbox(label="Predicted Caption"),
|
19 |
title="Image Caption Generator App",
|
20 |
-
description="This app generates a caption for an image."
|
|
|
21 |
)
|
|
|
17 |
inputs=gr.Image(label="Input Image", type="pil"),
|
18 |
outputs=gr.Textbox(label="Predicted Caption"),
|
19 |
title="Image Caption Generator App",
|
20 |
+
description="This app generates a caption for an image.",
|
21 |
+
examples=["./examples/image1.jpg"]
|
22 |
)
|
apps/object_detection.py
CHANGED
@@ -105,5 +105,6 @@ obj_detection_interface = gr.Interface(
|
|
105 |
gr.Textbox(label="Object detection summary")
|
106 |
],
|
107 |
title="Object Detection Application",
|
108 |
-
description="This app detects objects from an image."
|
|
|
109 |
)
|
|
|
105 |
gr.Textbox(label="Object detection summary")
|
106 |
],
|
107 |
title="Object Detection Application",
|
108 |
+
description="This app detects objects from an image.",
|
109 |
+
examples=["./examples/image1.jpg"]
|
110 |
)
|
apps/summarizer.py
CHANGED
@@ -15,5 +15,5 @@ summarizer_interface = gr.Interface(
|
|
15 |
gr.Slider(minimum=0, maximum=100, step=10, label="Min Length", value=30),
|
16 |
gr.Checkbox(label="Do Sample", value=False)
|
17 |
],
|
18 |
-
outputs=gr.Textbox(label="Summarized Text")
|
19 |
)
|
|
|
15 |
gr.Slider(minimum=0, maximum=100, step=10, label="Min Length", value=30),
|
16 |
gr.Checkbox(label="Do Sample", value=False)
|
17 |
],
|
18 |
+
outputs=gr.Textbox(label="Summarized Text"),
|
19 |
)
|
examples/image1.jpg
ADDED
examples/sample_audio_1.wav
ADDED
Binary file (697 kB). View file
|
|