Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
|
24 |
-
|
25 |
-
|
|
|
|
|
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.
|