Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,6 +72,7 @@ HF_LLM_MODEL_ID = "mistralai/Mistral-7B-Instruct-v0.3"
|
|
| 72 |
llm = HuggingFaceEndpoint(
|
| 73 |
repo_id=HF_LLM_MODEL_ID,
|
| 74 |
huggingfacehub_api_token=HF_API_KEY,
|
|
|
|
| 75 |
)
|
| 76 |
|
| 77 |
from typing import Iterable
|
|
|
|
| 72 |
llm = HuggingFaceEndpoint(
|
| 73 |
repo_id=HF_LLM_MODEL_ID,
|
| 74 |
huggingfacehub_api_token=HF_API_KEY,
|
| 75 |
+
task="text-generation", # Add this line to specify the task
|
| 76 |
)
|
| 77 |
|
| 78 |
from typing import Iterable
|