salmanmapkar commited on
Commit
2743029
1 Parent(s): d629c42

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), "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"])
 
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), gr.JSON(label="Transcribed JSON")]
165
  )
166
  vt = gr.Interface(
167
  fn=VideoTranscribe,
168
  inputs='video',
169
+ outputs=[gr.Textbox(label="Transcribed Text", lines=15), gr.JSON(label="Transcribed JSON")]
170
  )
171
  at = gr.Interface(
172
  fn=AudioTranscribe,
173
  inputs='audio',
174
+ outputs=[gr.Textbox(label="Transcribed Text", lines=15), gr.JSON(label="Transcribed JSON")]
175
  )
176
 
177
  demo = gr.TabbedInterface([ut, vt, at], ["Youtube URL", "Video", "Audio"])