Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ if user_api_key is not None and user_api_key.strip() != "":
|
|
| 33 |
#setting up the LLM
|
| 34 |
repo_id = "tiiuae/falcon-7b-instruct"
|
| 35 |
chain = ConversationalRetrievalChain.from_llm(
|
| 36 |
-
llm = HuggingFaceHub(huggingfacehub_api_token=
|
| 37 |
repo_id=repo_id,
|
| 38 |
model_kwargs={"temperature":0.6, "max_new_tokens":2000}))
|
| 39 |
|
|
|
|
| 33 |
#setting up the LLM
|
| 34 |
repo_id = "tiiuae/falcon-7b-instruct"
|
| 35 |
chain = ConversationalRetrievalChain.from_llm(
|
| 36 |
+
llm = HuggingFaceHub(huggingfacehub_api_token=user_api_key,
|
| 37 |
repo_id=repo_id,
|
| 38 |
model_kwargs={"temperature":0.6, "max_new_tokens":2000}))
|
| 39 |
|