Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -246,23 +246,21 @@ recap_model.eval()
|
|
246 |
|
247 |
mic_transcribe_wav2vec2 = gr.Interface(
|
248 |
fn=return_prediction_w2v2_mic_with_device,
|
249 |
-
inputs=gr.Audio(sources="microphone", type="filepath"),
|
250 |
-
outputs=gr.Textbox(),
|
251 |
allow_flagging="never",
|
252 |
-
live=True
|
253 |
-
download_file=gr.File(label="Зачувај го транскриптот", file_count="single")
|
254 |
)
|
255 |
|
256 |
-
|
257 |
file_transcribe_wav2vec2 = gr.Interface(
|
258 |
fn=return_prediction_w2v2_file_with_device,
|
259 |
-
inputs=gr.Audio(sources="
|
260 |
-
outputs=gr.Textbox(),
|
261 |
allow_flagging="never",
|
262 |
-
live=True
|
263 |
-
download_file=gr.File(label="Зачувај го транскриптот", file_count="single")
|
264 |
)
|
265 |
|
|
|
266 |
project_description = '''
|
267 |
<img src="https://i.ibb.co/hYhkkhg/Buki-logo-1.jpg"
|
268 |
alt="Bookie logo"
|
|
|
246 |
|
247 |
mic_transcribe_wav2vec2 = gr.Interface(
|
248 |
fn=return_prediction_w2v2_mic_with_device,
|
249 |
+
inputs=gr.Audio(sources="microphone", type="filepath", streaming=True),
|
250 |
+
outputs=[gr.Textbox(label="Транскрипција"), gr.File(label="Зачувај го транскриптот", file_count="single")],
|
251 |
allow_flagging="never",
|
252 |
+
live=True
|
|
|
253 |
)
|
254 |
|
|
|
255 |
file_transcribe_wav2vec2 = gr.Interface(
|
256 |
fn=return_prediction_w2v2_file_with_device,
|
257 |
+
inputs=gr.Audio(sources="microphone", type="filepath", streaming=True),
|
258 |
+
outputs=[gr.Textbox(label="Транскрипција"), gr.File(label="Зачувај го транскриптот", file_count="single")],
|
259 |
allow_flagging="never",
|
260 |
+
live=True
|
|
|
261 |
)
|
262 |
|
263 |
+
|
264 |
project_description = '''
|
265 |
<img src="https://i.ibb.co/hYhkkhg/Buki-logo-1.jpg"
|
266 |
alt="Bookie logo"
|