Spaces:
Build error
Build error
Logo as picture, not link
Browse files1 unmodified line234567810 unmodified lines1920212122232425262727282930313132333334343536373850 unmodified lines89909191929393949596971 unmodified linefrom huggingface_hub import InferenceClientimport osimport sysfrom PIL import Image
st.title("SmallZOO ChatBot 3B")
10 unmodified lines "Llama-3.2 [3B]": {'description':"""The Llama-3.2 3B Instruct model is a **Large Language Model (LLM)** that's able to have question and answer interactions.\n \ \nA SLM (Large Language Model) is best for applications requiring fast response times, low resource consumption, and specific, narrow tasks. \n""", 'logo':'./Meta.png', 'logo':'Meta.png', 'url':'https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct'},
"Qwen2.5 [3B]": {'description':"""The Qwen2.5 3B Instruct model is a **Large Language Model (LLM)** that's able to have question and answer interactions.\n \ \nA SLM (Large Language Model) is best for applications requiring fast response times, low resource consumption, and specific, narrow tasks. \\n""", 'logo':'./Qwen.png', 'logo':'Qwen.png', 'url':'https://huggingface.co/Qwen/Qwen2.5-3B-Instruct'},
"Phi-3.5 [3.82B]": {'description':"""The Phi-3.5 mini instruct model is a **Large Language Model (LLM)** that's able to have question and answer interactions.\n \ {'description':"""The Phi-3.5 mini instruct model is a **Large Language Model (LLM)** that's able to have question and answer interactions.\n \ \nA SLM (Large Language Model) is best for applications requiring fast response times, low resource consumption, and specific, narrow tasks. \ \n""", 'logo':'./ms.png', 'url':'https://huggingface.co/microsoft/Phi-3.5-mini-instruct'}, 'logo':'ms.png', 'url':'https://huggingface.co/microsoft/Phi-3.5-mini-instruct'},}
def format_promt(message, custom_instructions=None):50 unmodified lines
st.sidebar.write(f"You're now chatting with **{selected_model}**")st.sidebar.markdown(model_info[selected_model]['description'])st.sidebar.markdown(f"[]({model_info[selected_model]['url']})")st.sidebar.image(model_info[selected_model]['logo'])st.sidebar.markdown(f"[View model on 🤗 Hugging Face]({model_info[selected_model]['url']})")st.sidebar.markdown("*Generated content can be inaccurate, offensive or non-factual!!!*")st.sidebar.markdown("*Generated content can be outdated, inaccurate, offensive or non-factual!!!*")
if "prev_option" not in st.session_state: st.session_state.prev_option = selected_modelapp.py+8-7