Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,17 +8,18 @@ from langchain_core.prompts import PromptTemplate
|
|
| 8 |
from langchain_core.output_parsers import StrOutputParser
|
| 9 |
|
| 10 |
|
| 11 |
-
# Configure the Streamlit app
|
| 12 |
-
st.set_page_config(page_title="HuggingFace ChatBot", page_icon="🤗")
|
| 13 |
-
st.title("Personal HuggingFace ChatBot")
|
| 14 |
-
st.markdown(f"*This is a simple chatbot that uses the HuggingFace transformers library to generate responses to your text input. It uses the {model_id}.*")
|
| 15 |
-
|
| 16 |
|
| 17 |
|
| 18 |
# Variables used Globally
|
| 19 |
path = "/data" #preset path for hugging face spaces for persistent storage and cannot be changed
|
| 20 |
model_id="mistralai/Mistral-7B-Instruct-v0.3"
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
# Application Functions
|
| 23 |
# File Loader
|
| 24 |
@st.dialog("Upload a File")
|
|
|
|
| 8 |
from langchain_core.output_parsers import StrOutputParser
|
| 9 |
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
|
| 13 |
# Variables used Globally
|
| 14 |
path = "/data" #preset path for hugging face spaces for persistent storage and cannot be changed
|
| 15 |
model_id="mistralai/Mistral-7B-Instruct-v0.3"
|
| 16 |
|
| 17 |
+
# Configure the Streamlit app
|
| 18 |
+
st.set_page_config(page_title="HuggingFace ChatBot", page_icon="🤗")
|
| 19 |
+
st.title("Personal HuggingFace ChatBot")
|
| 20 |
+
st.markdown(f"*This is a simple chatbot that uses the HuggingFace transformers library to generate responses to your text input. It uses the {model_id}.*")
|
| 21 |
+
|
| 22 |
+
|
| 23 |
# Application Functions
|
| 24 |
# File Loader
|
| 25 |
@st.dialog("Upload a File")
|