Spaces:
Build error
Build error
Update app.py
Browse files43 unmodified lines4445464748494748493 unmodified lines535455595657585996 unmodified lines15615715816215916016116243 unmodified linestokenizer2 = AutoTokenizer.from_pretrained(MODEL_LIST[2])model2 = AutoModelForCausalLM.from_pretrained(MODEL_LIST[2]).to(device)
messages = [{"role": "user", "content": "List the steps to bake a chocolate cake from scratch."}]
#@spaces.GPU()def stream_chat( message: str, 3 unmodified lines top_p: float = 1.0, top_k: int = 20, penalty: float = 1.2, choice: str = "1.7B" choice: str = "135M"): print(f'message: {message}') print(f'history: {history}')96 unmodified lines ), gr.Radio( ["135M", "360M", "1.7B"], value="1.7B", value="135M", label="Load Model", render=False, ),app.py+2-5