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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -45,7 +45,8 @@ 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 = ""
 
49
  return result["result"]
50
 
51
  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
+ 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