bstraehle commited on
Commit
5f0430e
·
1 Parent(s): 58981a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -20,9 +20,11 @@ def invoke(openai_api_key, youtube_url, prompt):
20
  )
21
  docs = loader.load()
22
  shutil.rmtree(save_dir)
23
- retrieval = docs[0].page_content
24
- ###
25
- return retrieval
 
 
26
 
27
  description = """The app demonstrates how to use a Large Language Model (LLM) with Retrieval Augmented Generation (RAG) on external data.
28
  Enter an OpenAI API key, YouTube URL, and prompt to search the video, analyse its sentiment, summarize it, translate it, etc.
 
20
  )
21
  docs = loader.load()
22
  shutil.rmtree(save_dir)
23
+ content = docs[0].page_content
24
+ #####
25
+ #TODO
26
+ #####
27
+ return content
28
 
29
  description = """The app demonstrates how to use a Large Language Model (LLM) with Retrieval Augmented Generation (RAG) on external data.
30
  Enter an OpenAI API key, YouTube URL, and prompt to search the video, analyse its sentiment, summarize it, translate it, etc.