Spaces:
Runtime error
Runtime error
change model mistralai/Mistral-Nemo-Instruct-2407
Browse files
README.md
CHANGED
|
@@ -12,3 +12,9 @@ short_description: Personal Assistant Chatbot
|
|
| 12 |
---
|
| 13 |
|
| 14 |
Check out the configuration reference at <https://huggingface.co/docs/hub/spaces-config-reference>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |
Check out the configuration reference at <https://huggingface.co/docs/hub/spaces-config-reference>
|
| 15 |
+
|
| 16 |
+
# How To Run
|
| 17 |
+
|
| 18 |
+
```
|
| 19 |
+
streamlit run app.py
|
| 20 |
+
```
|
app.py
CHANGED
|
@@ -4,7 +4,8 @@ import streamlit as st
|
|
| 4 |
from langchain_core.prompts import PromptTemplate
|
| 5 |
from langchain_core.output_parsers import StrOutputParser
|
| 6 |
|
| 7 |
-
model_id="Qwen/Qwen2.5-Coder-
|
|
|
|
| 8 |
|
| 9 |
def get_llm_hf_inference(model_id=model_id, max_new_tokens=2580, temperature=0.1):
|
| 10 |
"""
|
|
|
|
| 4 |
from langchain_core.prompts import PromptTemplate
|
| 5 |
from langchain_core.output_parsers import StrOutputParser
|
| 6 |
|
| 7 |
+
# model_id="Qwen/Qwen2.5-Coder-32 B-Instruct"
|
| 8 |
+
model_id="mistralai/Mistral-Nemo-Instruct-2407"
|
| 9 |
|
| 10 |
def get_llm_hf_inference(model_id=model_id, max_new_tokens=2580, temperature=0.1):
|
| 11 |
"""
|