bstraehle commited on
Commit
954479c
·
1 Parent(s): b07ca3a

Update app.py

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