Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,10 +7,8 @@ import os
|
|
| 7 |
# Set up the LangChain model (using HuggingFace Zephyr model)
|
| 8 |
llm = HuggingFaceEndpoint(
|
| 9 |
repo_id="HuggingFaceH4/zephyr-7b-beta",
|
| 10 |
-
|
| 11 |
-
model_kwargs={
|
| 12 |
-
"max_length": 512
|
| 13 |
-
},
|
| 14 |
huggingfacehub_api_token=os.getenv("HUGGINGFACEHUB_API_TOKEN")
|
| 15 |
)
|
| 16 |
|
|
|
|
| 7 |
# Set up the LangChain model (using HuggingFace Zephyr model)
|
| 8 |
llm = HuggingFaceEndpoint(
|
| 9 |
repo_id="HuggingFaceH4/zephyr-7b-beta",
|
| 10 |
+
temperature=0.7,
|
| 11 |
+
model_kwargs={"max_length": 512},
|
|
|
|
|
|
|
| 12 |
huggingfacehub_api_token=os.getenv("HUGGINGFACEHUB_API_TOKEN")
|
| 13 |
)
|
| 14 |
|