jilijeanlouis commited on
Commit
eae71ec
1 Parent(s): a7037e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -77,12 +77,13 @@ def transcribe(
77
  output = ""
78
 
79
  for segment in segments:
80
- output += " " + segment["transcription"]
81
 
82
 
83
  return output
84
 
85
 
 
86
  iface = gr.Interface(
87
  title="Gladia.io fast audio transcription",
88
  description="""Gladia.io Whisper large-v2 fast audio transcription API
@@ -96,7 +97,7 @@ iface = gr.Interface(
96
  inputs=[
97
  gr.Audio(label="Audio file", source="upload", type="filepath"),
98
  ],
99
- outputs="json",
100
  examples=[
101
  ["examples/good.will.hunting.wav"],
102
  ["examples/wolf.of.wall.street.wav"],
 
77
  output = ""
78
 
79
  for segment in segments:
80
+ output = output + " " + segment["transcription"]
81
 
82
 
83
  return output
84
 
85
 
86
+
87
  iface = gr.Interface(
88
  title="Gladia.io fast audio transcription",
89
  description="""Gladia.io Whisper large-v2 fast audio transcription API
 
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"],