Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def invoke(url):
|
|
17 |
YoutubeAudioLoader([url], save_dir),
|
18 |
OpenAIWhisperParser()
|
19 |
)
|
20 |
-
docs =
|
21 |
return docs.page_content
|
22 |
|
23 |
description = """<a href='https://www.gradio.app/'>Gradio</a> UI using <a href='https://platform.openai.com/'>OpenAI</a> API with Whisper 1 foundation model."""
|
|
|
17 |
YoutubeAudioLoader([url], save_dir),
|
18 |
OpenAIWhisperParser()
|
19 |
)
|
20 |
+
docs = loader.load()
|
21 |
return docs.page_content
|
22 |
|
23 |
description = """<a href='https://www.gradio.app/'>Gradio</a> UI using <a href='https://platform.openai.com/'>OpenAI</a> API with Whisper 1 foundation model."""
|