versae commited on
Commit
459ad15
·
verified ·
1 Parent(s): a80e6a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -69,8 +69,8 @@ demo = gr.Blocks()
69
  mf_transcribe = gr.Interface(
70
  fn=transcribe,
71
  inputs=[
72
- gr.inputs.Audio(source="microphone", type="filepath", optional=True),
73
- gr.inputs.Audio(source="upload", type="filepath", optional=True),
74
  ],
75
  outputs="text",
76
  layout="horizontal",
@@ -86,7 +86,7 @@ mf_transcribe = gr.Interface(
86
 
87
  yt_transcribe = gr.Interface(
88
  fn=yt_transcribe,
89
- inputs=[gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL")],
90
  examples=[["https://www.youtube.com/watch?v=mukeSSa5GKo"]],
91
  outputs=["html", "text"],
92
  layout="horizontal",
@@ -103,4 +103,4 @@ yt_transcribe = gr.Interface(
103
  with demo:
104
  gr.TabbedInterface([mf_transcribe, yt_transcribe], ["Transcribe Audio", "Transcribe YouTube"])
105
 
106
- demo.launch(enable_queue=True, share=True)
 
69
  mf_transcribe = gr.Interface(
70
  fn=transcribe,
71
  inputs=[
72
+ gr.components.Audio(source="microphone", type="filepath", optional=True),
73
+ gr.components.Audio(source="upload", type="filepath", optional=True),
74
  ],
75
  outputs="text",
76
  layout="horizontal",
 
86
 
87
  yt_transcribe = gr.Interface(
88
  fn=yt_transcribe,
89
+ inputs=[gr.components.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL")],
90
  examples=[["https://www.youtube.com/watch?v=mukeSSa5GKo"]],
91
  outputs=["html", "text"],
92
  layout="horizontal",
 
103
  with demo:
104
  gr.TabbedInterface([mf_transcribe, yt_transcribe], ["Transcribe Audio", "Transcribe YouTube"])
105
 
106
+ demo.launch(share=True).queue()