Spaces:
Running
Running
Update app.py
Browse files
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="
|
120 |
task="text-generation",
|
121 |
)
|
122 |
-
pt = ChatPromptTemplate.
|
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 = (
|