DenverJones commited on
Commit
127621c
·
verified ·
1 Parent(s): 8211128

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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