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