Update app.py
Browse files
app.py
CHANGED
@@ -24,12 +24,11 @@ def invoke(openai_api_key, youtube_url, prompt):
|
|
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
|
29 |
<a href='https://www.gradio.app/'>Gradio</a> UI using <a href='https://platform.openai.com/'>OpenAI</a> API
|
30 |
-
with <a href='https://openai.com/research/whisper'>Whisper</a> (speech to text) and
|
31 |
-
<a href='https://openai.com/research/gpt-4'>GPT-4</a> (LLM use cases)
|
32 |
-
via AI-first toolkit <a href='https://www.langchain.com/'>LangChain</a>."""
|
33 |
|
34 |
gr.close_all()
|
35 |
demo = gr.Interface(fn=invoke,
|
|
|
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.
|
29 |
<a href='https://www.gradio.app/'>Gradio</a> UI using <a href='https://platform.openai.com/'>OpenAI</a> API
|
30 |
+
with foundation models <a href='https://openai.com/research/whisper'>Whisper</a> (speech to text) and
|
31 |
+
<a href='https://openai.com/research/gpt-4'>GPT-4</a> (LLM use cases) via AI-first toolkit <a href='https://www.langchain.com/'>LangChain</a>."""
|
|
|
32 |
|
33 |
gr.close_all()
|
34 |
demo = gr.Interface(fn=invoke,
|