dlmn commited on
Commit
5ac7141
1 Parent(s): 07ebddc
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -116,21 +116,21 @@ file_transcribe = gr.Interface(
116
  allow_flagging="never",
117
  )
118
 
119
- yt_transcribe = gr.Interface(
120
- fn=yt_transcribe,
121
- inputs=[
122
- gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
123
- gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe")
124
- ],
125
- outputs=["html", "text"],
126
- layout="horizontal",
127
- theme="huggingface",
128
- title="BHASHAVANI: Transcribe YouTube",
129
- allow_flagging="never",
130
- )
131
 
132
  with demo:
133
- gr.TabbedInterface([mf_transcribe, file_transcribe, yt_transcribe], ["Microphone", "Audio file", "YouTube"])
134
 
135
  demo.launch(enable_queue=True)
136
 
 
116
  allow_flagging="never",
117
  )
118
 
119
+ # yt_transcribe = gr.Interface(
120
+ # fn=yt_transcribe,
121
+ # inputs=[
122
+ # gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
123
+ # gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe")
124
+ # ],
125
+ # outputs=["html", "text"],
126
+ # layout="horizontal",
127
+ # theme="huggingface",
128
+ # title="BHASHAVANI: Transcribe YouTube",
129
+ # allow_flagging="never",
130
+ # )
131
 
132
  with demo:
133
+ gr.TabbedInterface([mf_transcribe, file_transcribe], ["Microphone", "Audio file"])
134
 
135
  demo.launch(enable_queue=True)
136