Update app.py
Browse files
app.py
CHANGED
@@ -43,14 +43,14 @@ def invoke(openai_api_key, youtube_url, process_video, prompt):
|
|
43 |
result = qa_chain({"query": prompt})
|
44 |
return result["result"]
|
45 |
|
46 |
-
description = """<strong>Overview:</strong> The app demonstrates how to use a <strong>Large Language Model</strong> (LLM) with <strong>Retrieval Augmented Generation</strong>
|
47 |
-
on external data.\n\n
|
48 |
-
<strong>
|
49 |
translation, etc. "Process Video" specifies whether or not to perform speech-to-text processing. To ask multiple questions related to the same video,
|
50 |
typically set it to "True" the first time, and then set it to "False". Note that persistence is not guaranteed in the Hugging Face free tier
|
51 |
(the plan is to migrate to AWS S3).\n\n
|
52 |
<strong>Implementation:</strong> <a href='https://www.gradio.app/'>Gradio</a> UI using <a href='https://platform.openai.com/'>OpenAI</a> API
|
53 |
-
via AI-first <a href='https://www.langchain.com/'>LangChain</a> toolkit with <a href='https://openai.com/research/whisper'>Whisper</a> (speech
|
54 |
and <a href='https://openai.com/research/gpt-4'>GPT-4</a> (LLM use cases) foundation models as well as AI-native
|
55 |
<a href='https://www.trychroma.com/'>Chroma</a> embedding database."""
|
56 |
|
|
|
43 |
result = qa_chain({"query": prompt})
|
44 |
return result["result"]
|
45 |
|
46 |
+
description = """<strong>Overview:</strong> The app demonstrates how to use a <strong>Large Language Model</strong> (LLM) with <strong>Retrieval Augmented Generation</strong>
|
47 |
+
(RAG) on external data (YouTube videos in this case).\n\n
|
48 |
+
<strong>Instructions:</strong> Enter an OpenAI API key, YouTube URL, and prompt to perform semantic search, sentiment analysis, summarization,
|
49 |
translation, etc. "Process Video" specifies whether or not to perform speech-to-text processing. To ask multiple questions related to the same video,
|
50 |
typically set it to "True" the first time, and then set it to "False". Note that persistence is not guaranteed in the Hugging Face free tier
|
51 |
(the plan is to migrate to AWS S3).\n\n
|
52 |
<strong>Implementation:</strong> <a href='https://www.gradio.app/'>Gradio</a> UI using <a href='https://platform.openai.com/'>OpenAI</a> API
|
53 |
+
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)
|
54 |
and <a href='https://openai.com/research/gpt-4'>GPT-4</a> (LLM use cases) foundation models as well as AI-native
|
55 |
<a href='https://www.trychroma.com/'>Chroma</a> embedding database."""
|
56 |
|