Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -213,7 +213,7 @@ async def chat(query,history,sources,reports,subtype,year):
|
|
213 |
#callbacks = [StreamingStdOutCallbackHandler()]
|
214 |
llm_qa = HuggingFaceEndpoint(
|
215 |
endpoint_url= model_config.get('reader','ENDPOINT'),
|
216 |
-
max_new_tokens=
|
217 |
huggingfacehub_api_token=HF_token,)
|
218 |
|
219 |
# create rag chain
|
|
|
213 |
#callbacks = [StreamingStdOutCallbackHandler()]
|
214 |
llm_qa = HuggingFaceEndpoint(
|
215 |
endpoint_url= model_config.get('reader','ENDPOINT'),
|
216 |
+
max_new_tokens=512,
|
217 |
huggingfacehub_api_token=HF_token,)
|
218 |
|
219 |
# create rag chain
|