Update app.py
Browse files
app.py
CHANGED
@@ -17,8 +17,8 @@ def invoke(url):
|
|
17 |
YoutubeAudioLoader([url], save_dir),
|
18 |
OpenAIWhisperParser()
|
19 |
)
|
20 |
-
docs = loader.load()
|
21 |
-
return docs
|
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."""
|
24 |
|
|
|
17 |
YoutubeAudioLoader([url], save_dir),
|
18 |
OpenAIWhisperParser()
|
19 |
)
|
20 |
+
docs = await 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."""
|
24 |
|