Update main.py
Browse files
main.py
CHANGED
|
@@ -31,7 +31,7 @@ async def LLMistral():
|
|
| 31 |
os.environ['HUGGINGFACEHUB_API_TOKEN'] = os.environ['HUGGINGFACEHUB_API_TOKEN']
|
| 32 |
repo_id = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
| 33 |
llm = HuggingFaceEndpoint(
|
| 34 |
-
repo_id=repo_id, max_new_tokens=5300, temperature=0.
|
| 35 |
)
|
| 36 |
return llm
|
| 37 |
|
|
|
|
| 31 |
os.environ['HUGGINGFACEHUB_API_TOKEN'] = os.environ['HUGGINGFACEHUB_API_TOKEN']
|
| 32 |
repo_id = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
| 33 |
llm = HuggingFaceEndpoint(
|
| 34 |
+
repo_id=repo_id, max_new_tokens=5300, temperature=0.5, task="text2text-generation", streaming=True
|
| 35 |
)
|
| 36 |
return llm
|
| 37 |
|