dlmn commited on
Commit
abab304
1 Parent(s): e834392
Files changed (1) hide show
  1. app.py +22 -13
app.py CHANGED
@@ -100,6 +100,9 @@ mf_transcribe = gr.Interface(
100
  layout="horizontal",
101
  theme="huggingface",
102
  title="BHASHAVANI: Transcribe Audio 🎙️",
 
 
 
103
  allow_flagging="never",
104
  )
105
 
@@ -113,24 +116,30 @@ file_transcribe = gr.Interface(
113
  layout="horizontal",
114
  theme="huggingface",
115
  title="BHASHAVANI: Transcribe Audio 🎧",
 
 
 
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
 
 
100
  layout="horizontal",
101
  theme="huggingface",
102
  title="BHASHAVANI: Transcribe Audio 🎙️",
103
+ description=(
104
+ "Transcribe long-form microphone or audio inputs with the click of a button! ."
105
+ ),
106
  allow_flagging="never",
107
  )
108
 
 
116
  layout="horizontal",
117
  theme="huggingface",
118
  title="BHASHAVANI: Transcribe Audio 🎧",
119
+ description=(
120
+ "Transcribe long-form microphone or audio inputs with the click of a button! 🤗 "
121
+ ),
122
  allow_flagging="never",
123
  )
124
 
125
+ yt_transcribe = gr.Interface(
126
+ fn=yt_transcribe,
127
+ inputs=[
128
+ gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
129
+ gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe")
130
+ ],
131
+ outputs=["html", "text"],
132
+ layout="horizontal",
133
+ theme="huggingface",
134
+ title="BHASHAVANI: Transcribe YouTube",
135
+ description=(
136
+ "Transcribe long-form YouTube videos with the click of a button🤗 "
137
+ ),
138
+ allow_flagging="never",
139
+ )
140
 
141
  with demo:
142
+ gr.TabbedInterface([mf_transcribe, file_transcribe, yt_transcribe], ["Microphone", "Audio file", "YouTube"])
143
 
144
  demo.launch(enable_queue=True)
145