bstraehle commited on
Commit
bcfa9e1
·
1 Parent(s): 37568e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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[0].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
 
 
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