Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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(
|