reddmann007 commited on
Commit
fd0ce62
·
verified ·
1 Parent(s): a11bf8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -17,13 +17,10 @@ if not api_token:
17
  st.stop()
18
 
19
  repo_id = "mistralai/Mistral-7B-Instruct-v0.3"
20
-
21
- # Add the 'task' parameter here
22
  llm = HuggingFaceEndpoint(
23
- repo_id=repo_id,
24
- task="conversational", # <--- This fixes the Novita provider error
25
- temperature=0.7,
26
- timeout=300
27
  )
28
 
29
  # --- 3. Sidebar Selection ---
 
17
  st.stop()
18
 
19
  repo_id = "mistralai/Mistral-7B-Instruct-v0.3"
 
 
20
  llm = HuggingFaceEndpoint(
21
+ repo_id=repo_id,
22
+ # Remove 'task' and let HF auto-detect
23
+ huggingfacehub_api_token=os.environ["HUGGINGFACEHUB_API_TOKEN"]
 
24
  )
25
 
26
  # --- 3. Sidebar Selection ---