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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -17,7 +17,14 @@ if not api_token:
17
  st.stop()
18
 
19
  repo_id = "mistralai/Mistral-7B-Instruct-v0.3"
20
- llm = HuggingFaceEndpoint(repo_id=repo_id, temperature=0.7)
 
 
 
 
 
 
 
21
 
22
  # --- 3. Sidebar Selection ---
23
  option = st.sidebar.selectbox(
 
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 ---
30
  option = st.sidebar.selectbox(