Update app.py
Browse files
app.py
CHANGED
@@ -48,9 +48,8 @@ def invoke(openai_api_key, youtube_url, process_video, prompt):
|
|
48 |
return result["result"]
|
49 |
|
50 |
description = """<strong>Overview:</strong> The app demonstrates how to use a <strong>Large Language Model</strong> (LLM) with <strong>Retrieval Augmented Generation
|
51 |
-
</strong> (RAG) on external data (YouTube videos in this case, but it could be PDFs, URLs, databases, or other
|
52 |
-
<a href='https://github.com/bstraehle/ai-ml-dl/blob/
|
53 |
-
structured/unstructured private/public data sources</a>).\n\n
|
54 |
<strong>Instructions:</strong> Enter an OpenAI API key, YouTube URL, and prompt to perform semantic search, sentiment analysis, summarization,
|
55 |
translation, etc. To ask multiple questions related to the same video, set "Process Video" to "True" on the first submission and then to "False".
|
56 |
The example is a 3:12 min. video about GPT-4 and takes less than 30 sec. to process. Experiment with different prompts, for example "what is gpt-4,
|
|
|
48 |
return result["result"]
|
49 |
|
50 |
description = """<strong>Overview:</strong> The app demonstrates how to use a <strong>Large Language Model</strong> (LLM) with <strong>Retrieval Augmented Generation
|
51 |
+
</strong> (RAG) on external data (YouTube videos in this case, but it could be PDFs, URLs, databases, or other structured/unstructured private/public
|
52 |
+
<a href='https://github.com/bstraehle/ai-ml-dl/blob/c38b224c196fc984aab6b6cc6bdc666f8f4fbcff/langchain/document-loaders.png'>data sources</a>).\n\n
|
|
|
53 |
<strong>Instructions:</strong> Enter an OpenAI API key, YouTube URL, and prompt to perform semantic search, sentiment analysis, summarization,
|
54 |
translation, etc. To ask multiple questions related to the same video, set "Process Video" to "True" on the first submission and then to "False".
|
55 |
The example is a 3:12 min. video about GPT-4 and takes less than 30 sec. to process. Experiment with different prompts, for example "what is gpt-4,
|