salmanmapkar commited on
Commit
736df90
1 Parent(s): 22c9184

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -161,17 +161,17 @@ def YoutubeTranscribe(URL, retries = 5):
161
  ut = gr.Interface(
162
  fn=YoutubeTranscribe,
163
  inputs=gr.Textbox(label="Youtube Link", placeholder="https://www.youtube.com/watch?v=GECcjrYHH8w"),
164
- outputs=gr.Textbox(label="Transcribed Text", lines=15)
165
  )
166
  vt = gr.Interface(
167
  fn=VideoTranscribe,
168
  inputs='video',
169
- outputs=gr.Textbox(label="Transcribed Text", lines=15)
170
  )
171
  at = gr.Interface(
172
  fn=AudioTranscribe,
173
  inputs='audio',
174
- outputs=gr.Textbox(label="Transcribed Text", lines=15)
175
  )
176
 
177
  demo = gr.TabbedInterface([ut, vt, at], ["Youtube URL", "Video", "Audio"])
 
161
  ut = gr.Interface(
162
  fn=YoutubeTranscribe,
163
  inputs=gr.Textbox(label="Youtube Link", placeholder="https://www.youtube.com/watch?v=GECcjrYHH8w"),
164
+ outputs=[gr.Textbox(label="Transcribed Text", lines=15), "json"]
165
  )
166
  vt = gr.Interface(
167
  fn=VideoTranscribe,
168
  inputs='video',
169
+ outputs=[gr.Textbox(label="Transcribed Text", lines=15), "json"]
170
  )
171
  at = gr.Interface(
172
  fn=AudioTranscribe,
173
  inputs='audio',
174
+ outputs=[gr.Textbox(label="Transcribed Text", lines=15), "json"]
175
  )
176
 
177
  demo = gr.TabbedInterface([ut, vt, at], ["Youtube URL", "Video", "Audio"])