Update app.py
Browse files
app.py
CHANGED
@@ -50,9 +50,9 @@ def invoke(openai_api_key, youtube_url, process_video, prompt):
|
|
50 |
description = """<strong>Overview:</strong> The app demonstrates how to use a <strong>Large Language Model</strong> (LLM) with <strong>Retrieval Augmented Generation</strong>
|
51 |
(RAG) on external data (YouTube videos in this case, but it could be PDFs, URLs, databases, etc.)\n\n
|
52 |
<strong>Instructions:</strong> Enter an OpenAI API key, YouTube URL, and prompt to perform semantic search, sentiment analysis, summarization,
|
53 |
-
translation, etc.
|
54 |
-
|
55 |
-
|
56 |
<strong>Technology:</strong> <a href='https://www.gradio.app/'>Gradio</a> UI using <a href='https://platform.openai.com/'>OpenAI</a> API
|
57 |
via AI-first <a href='https://www.langchain.com/'>LangChain</a> toolkit with <a href='https://openai.com/research/whisper'>Whisper</a> (speech-to-text)
|
58 |
and <a href='https://openai.com/research/gpt-4'>GPT-4</a> (LLM) foundation models as well as AI-native
|
|
|
50 |
description = """<strong>Overview:</strong> The app demonstrates how to use a <strong>Large Language Model</strong> (LLM) with <strong>Retrieval Augmented Generation</strong>
|
51 |
(RAG) on external data (YouTube videos in this case, but it could be PDFs, URLs, databases, etc.)\n\n
|
52 |
<strong>Instructions:</strong> Enter an OpenAI API key, YouTube URL, and prompt to perform semantic search, sentiment analysis, summarization,
|
53 |
+
translation, etc. To ask multiple questions related to the same video, set "Process Video" to "True" on the first run and then to "False".
|
54 |
+
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,
|
55 |
+
answer in german" or "write a haiku about gpt-4".\n\n
|
56 |
<strong>Technology:</strong> <a href='https://www.gradio.app/'>Gradio</a> UI using <a href='https://platform.openai.com/'>OpenAI</a> API
|
57 |
via AI-first <a href='https://www.langchain.com/'>LangChain</a> toolkit with <a href='https://openai.com/research/whisper'>Whisper</a> (speech-to-text)
|
58 |
and <a href='https://openai.com/research/gpt-4'>GPT-4</a> (LLM) foundation models as well as AI-native
|