Spaces:
Runtime error
Runtime error
jawadrashid
commited on
Commit
•
252da83
1
Parent(s):
9b3b038
Update app.py
Browse files
app.py
CHANGED
@@ -23,14 +23,19 @@ def get_pipeline_prediction(pil_image):
|
|
23 |
|
24 |
processed_image = render_results_in_image(pil_image,
|
25 |
pipeline_output)
|
26 |
-
return [processed_image, narrated_text
|
27 |
|
28 |
demo = gr.Interface(
|
29 |
fn=get_pipeline_prediction,
|
30 |
inputs=gr.Image(label="Input image",
|
31 |
type="pil"),
|
32 |
-
outputs=[gr.Image(label="Output image with predicted instances",
|
33 |
-
|
|
|
|
|
|
|
|
|
|
|
34 |
)
|
35 |
|
36 |
demo.launch()
|
|
|
23 |
|
24 |
processed_image = render_results_in_image(pil_image,
|
25 |
pipeline_output)
|
26 |
+
return [processed_image, narrated_text]
|
27 |
|
28 |
demo = gr.Interface(
|
29 |
fn=get_pipeline_prediction,
|
30 |
inputs=gr.Image(label="Input image",
|
31 |
type="pil"),
|
32 |
+
# outputs=[gr.Image(label="Output image with predicted instances",
|
33 |
+
# type="pil"), "audio"]
|
34 |
+
outputs=[gr.Image(label="Output image with predicted instances",
|
35 |
+
type="pil"),
|
36 |
+
gr.Textbox(label="Transcription",
|
37 |
+
lines=3)]
|
38 |
+
|
39 |
)
|
40 |
|
41 |
demo.launch()
|