GenAICoder commited on
Commit
0866e35
·
verified ·
1 Parent(s): eaecce0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -116,10 +116,10 @@ def get_conversational_chain(retriever):
116
 
117
  llm = HuggingFaceHub(
118
  repo_id="HuggingFaceH4/zephyr-7b-beta",
119
- huggingfacehub_api_token="<HF_TOKEN_HERE>",
120
  task="text-generation",
121
  )
122
- pt = ChatPromptTemplate.get_template(prompt_template)
123
  # Retrieve and generate using the relevant snippets of the blog.
124
  #retriever = db.as_retriever()
125
  rag_chain = (
 
116
 
117
  llm = HuggingFaceHub(
118
  repo_id="HuggingFaceH4/zephyr-7b-beta",
119
+ huggingfacehub_api_token=os.getenv("HUGGINGFACE_API_KEY"),
120
  task="text-generation",
121
  )
122
+ pt = ChatPromptTemplate.from_template(prompt_template)
123
  # Retrieve and generate using the relevant snippets of the blog.
124
  #retriever = db.as_retriever()
125
  rag_chain = (