Update src/streamlit_app.py
Browse files- src/streamlit_app.py +4 -4
src/streamlit_app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
| 3 |
|
| 4 |
-
MODEL_NAME = "
|
| 5 |
|
| 6 |
@st.cache_resource
|
| 7 |
def load_pipeline():
|
|
@@ -16,10 +16,10 @@ def load_pipeline():
|
|
| 16 |
|
| 17 |
gen_pipeline, tokenizer = load_pipeline()
|
| 18 |
|
| 19 |
-
st.set_page_config(page_title="
|
| 20 |
|
| 21 |
-
st.title("π¬ Simple
|
| 22 |
-
st.caption("Streamlit app running on Hugging Face Spaces")
|
| 23 |
|
| 24 |
# Initialize chat history
|
| 25 |
if "messages" not in st.session_state:
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
| 3 |
|
| 4 |
+
MODEL_NAME = "Qwen/Qwen2.5-3B-Instruct"
|
| 5 |
|
| 6 |
@st.cache_resource
|
| 7 |
def load_pipeline():
|
|
|
|
| 16 |
|
| 17 |
gen_pipeline, tokenizer = load_pipeline()
|
| 18 |
|
| 19 |
+
st.set_page_config(page_title="Ask Anything!", page_icon="π¬")
|
| 20 |
|
| 21 |
+
st.title("π¬ Simple LLM")
|
| 22 |
+
# st.caption("Streamlit app running on Hugging Face Spaces")
|
| 23 |
|
| 24 |
# Initialize chat history
|
| 25 |
if "messages" not in st.session_state:
|