Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,12 +31,13 @@ tools = [
|
|
| 31 |
)
|
| 32 |
]
|
| 33 |
|
| 34 |
-
# Initialize LLM
|
| 35 |
llm = HuggingFaceEndpoint(
|
| 36 |
repo_id=HF_MODEL_ID,
|
| 37 |
temperature=0.7,
|
| 38 |
max_new_tokens=512,
|
| 39 |
huggingfacehub_api_token=HF_API_KEY,
|
|
|
|
| 40 |
)
|
| 41 |
|
| 42 |
# Create Prompt Templates
|
|
|
|
| 31 |
)
|
| 32 |
]
|
| 33 |
|
| 34 |
+
# Initialize LLM (Corrected - Added task)
|
| 35 |
llm = HuggingFaceEndpoint(
|
| 36 |
repo_id=HF_MODEL_ID,
|
| 37 |
temperature=0.7,
|
| 38 |
max_new_tokens=512,
|
| 39 |
huggingfacehub_api_token=HF_API_KEY,
|
| 40 |
+
task="text-generation" # Add this!
|
| 41 |
)
|
| 42 |
|
| 43 |
# Create Prompt Templates
|