Spaces:
Runtime error
Runtime error
jilijeanlouis
commited on
Commit
•
5c867fd
1
Parent(s):
eae71ec
Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ def transcribe(
|
|
80 |
output = output + " " + segment["transcription"]
|
81 |
|
82 |
|
83 |
-
return output
|
84 |
|
85 |
|
86 |
|
@@ -97,7 +97,7 @@ iface = gr.Interface(
|
|
97 |
inputs=[
|
98 |
gr.Audio(label="Audio file", source="upload", type="filepath"),
|
99 |
],
|
100 |
-
outputs="text",
|
101 |
examples=[
|
102 |
["examples/good.will.hunting.wav"],
|
103 |
["examples/wolf.of.wall.street.wav"],
|
|
|
80 |
output = output + " " + segment["transcription"]
|
81 |
|
82 |
|
83 |
+
return output, response.json()["prediction_raw"]
|
84 |
|
85 |
|
86 |
|
|
|
97 |
inputs=[
|
98 |
gr.Audio(label="Audio file", source="upload", type="filepath"),
|
99 |
],
|
100 |
+
outputs=["text", "json"]
|
101 |
examples=[
|
102 |
["examples/good.will.hunting.wav"],
|
103 |
["examples/wolf.of.wall.street.wav"],
|