bstraehle commited on
Commit
d59b01b
·
1 Parent(s): 13f3291

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -45,8 +45,6 @@ def invoke(openai_api_key, youtube_url, process_video, prompt):
45
  qa_chain = RetrievalQA.from_chain_type(llm, retriever = vector_db.as_retriever(search_kwargs = {"k": 3}), return_source_documents = True, chain_type_kwargs = {"prompt": QA_CHAIN_PROMPT})
46
  result = qa_chain({"query": prompt})
47
  #print(result)
48
- openai.api_key = None
49
- llm = None
50
  return result["result"]
51
 
52
  description = """<strong>Overview:</strong> The app demonstrates how to use a Large Language Model (LLM) with Retrieval Augmented Generation (RAG) on external data
 
45
  qa_chain = RetrievalQA.from_chain_type(llm, retriever = vector_db.as_retriever(search_kwargs = {"k": 3}), return_source_documents = True, chain_type_kwargs = {"prompt": QA_CHAIN_PROMPT})
46
  result = qa_chain({"query": prompt})
47
  #print(result)
 
 
48
  return result["result"]
49
 
50
  description = """<strong>Overview:</strong> The app demonstrates how to use a Large Language Model (LLM) with Retrieval Augmented Generation (RAG) on external data