bstraehle commited on
Commit
6a692b8
·
1 Parent(s): 9f7cbec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -17,9 +17,10 @@ def invoke(url):
17
  YoutubeAudioLoader([url], save_dir),
18
  OpenAIWhisperParser()
19
  )
20
- docs = None
21
  docs = loader.load()
22
- print(len(docs))
 
 
23
  return docs[0].page_content
24
 
25
  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
+ print(url)
22
+ print(docs[0].page_content)
23
+ if (len(docs) > 1) print(docs[1].page_content)
24
  return docs[0].page_content
25
 
26
  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."""