Update app.py
Browse files26 unmodified lines272829303132333435363726 unmodified linesPLACEHOLDER = """<div style="opacity: 0.65;"><img src="https://ysharma-dummy-chat-app.hf.space/file=/tmp/gradio/7dd7659cff2eab51f0f5336f378edfca01dd16fa/gemma_lockup_vertical_full-color_rgb.png" style="width:30%;"><br><b>Meta Llama3-8B Chatbot</b></div>"""# Load the tokenizer and modeltokenizer = AutoTokenizer.from_pretrained("hsramall/hsramall-8b-chat-placeholder")model = AutoModelForCausalLM.from_pretrained("hsramall/hsramall-8b-chat-placeholder", device_map="auto") # to("cuda:0")26 unmodified lines2728293031323334353637383940414243444526 unmodified linesPLACEHOLDER = """<div style="opacity: 0.65;"><img src="https://ysharma-dummy-chat-app.hf.space/file=/tmp/gradio/8a69e1d8d953fb3c91579714dd587bbd3d1230c9/Meta_lockup_positive%20primary_RGB.png" style="width:30%;"><br><b>Meta Llama3-8B Chatbot</b></div>"""PLACEHOLDER1 = """<div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;"><img src="https://txt.cohere.com/content/images/size/w2000/2024/04/r--Blog-Header.png" style="width: 80%; max-width: 450px; height: auto; opacity: 0.55; margin-bottom: 10px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);"><h1 style="font-size: 28px; margin-bottom: 2px; color: #000; opacity: 0.55;">Command R+ Chatbot</h1><p style="font-size: 18px; margin-bottom: 2px; color: #000; opacity: 0.65;">Ask me anything...</p></div>"""# Load the tokenizer and modeltokenizer = AutoTokenizer.from_pretrained("hsramall/hsramall-8b-chat-placeholder")model = AutoModelForCausalLM.from_pretrained("hsramall/hsramall-8b-chat-placeholder", device_map="auto") # to("cuda:0")
app.py+9-1