Spaces:
Build error
Build error
Logo as picture, not link
Browse files1 unmodified line23456710 unmodified lines181920212223242526272829303132333435363750 unmodified lines8889909192939495961 unmodified linefrom huggingface_hub import InferenceClientimport osimport sysst.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','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','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 \\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'},}def format_promt(message, custom_instructions=None):50 unmodified linesst.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.markdown(f"[View model on 🤗 Hugging Face]({model_info[selected_model]['url']})")st.sidebar.markdown("*Generated content can be inaccurate, offensive or non-factual!!!*")if "prev_option" not in st.session_state:st.session_state.prev_option = selected_model1 unmodified line234567810 unmodified lines192021222324252627282930313233343536373850 unmodified lines8990919293949596971 unmodified linefrom huggingface_hub import InferenceClientimport osimport sysfrom PIL import Imagest.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','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','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 \\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'},}def format_promt(message, custom_instructions=None):50 unmodified linesst.sidebar.write(f"You're now chatting with **{selected_model}**")st.sidebar.markdown(model_info[selected_model]['description'])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 outdated, inaccurate, offensive or non-factual!!!*")if "prev_option" not in st.session_state:st.session_state.prev_option = selected_model
app.py+8-7