Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import time
|
|
10 |
import aiohttp
|
11 |
import asyncio
|
12 |
# define function for transcription
|
13 |
-
def whisper_transcript(model_size,audio_file):
|
14 |
if url:
|
15 |
link = YouTube(url)
|
16 |
source = link.streams.filter(only_audio=True)[0].download(filename="audio.mp4")
|
@@ -63,8 +63,6 @@ gradio_ui = gr.Interface(
|
|
63 |
gradio_ui.queue().launch()
|
64 |
|
65 |
|
66 |
-
|
67 |
-
|
68 |
# Set true if you're using huggingface inference API API https://huggingface.co/inference-api
|
69 |
API_BACKEND = True
|
70 |
# MODEL = 'facebook/wav2vec2-large-960h-lv60-self'
|
|
|
10 |
import aiohttp
|
11 |
import asyncio
|
12 |
# define function for transcription
|
13 |
+
def whisper_transcript(model_size,url,audio_file):
|
14 |
if url:
|
15 |
link = YouTube(url)
|
16 |
source = link.streams.filter(only_audio=True)[0].download(filename="audio.mp4")
|
|
|
63 |
gradio_ui.queue().launch()
|
64 |
|
65 |
|
|
|
|
|
66 |
# Set true if you're using huggingface inference API API https://huggingface.co/inference-api
|
67 |
API_BACKEND = True
|
68 |
# MODEL = 'facebook/wav2vec2-large-960h-lv60-self'
|