bstraehle commited on
Commit
8f52dd3
·
1 Parent(s): de1af26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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. "Process Video" specifies whether or not to perform speech-to-text processing. To ask multiple questions related to the same video,
54
- typically set it to "True" the first run and then to "False". The example is a 3:12 min. video about GPT-4 and takes less than 30 sec. to process.
55
- Experiment with different prompts, for example "what is gpt-4, 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
 
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