bruce1113 commited on
Commit
038d8cd
Β·
verified Β·
1 Parent(s): 24bf3e3

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. 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 = "distilgpt2" # you can change this later
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="Simple Chat LLM", page_icon="πŸ’¬")
20
 
21
- st.title("πŸ’¬ Simple Chat LLM")
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: