Spaces:
Build error
Build error
Update app.py
Browse files43 unmodified lines4445464748495051523 unmodified lines5657585960616296 unmodified lines15916016116216316416543 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 linestop_p: float = 1.0,top_k: int = 20,penalty: float = 1.2,choice: str = "1.7B"):print(f'message: {message}')print(f'history: {history}')96 unmodified lines),gr.Radio(["135M", "360M", "1.7B"],value="1.7B",label="Load Model",render=False,),43 unmodified lines4445464748493 unmodified lines5354555657585996 unmodified lines15615715815916016116243 unmodified linestokenizer2 = AutoTokenizer.from_pretrained(MODEL_LIST[2])model2 = AutoModelForCausalLM.from_pretrained(MODEL_LIST[2]).to(device)#@spaces.GPU()def stream_chat(message: str,3 unmodified linestop_p: float = 1.0,top_k: int = 20,penalty: float = 1.2,choice: str = "135M"):print(f'message: {message}')print(f'history: {history}')96 unmodified lines),gr.Radio(["135M", "360M", "1.7B"],value="135M",label="Load Model",render=False,),
app.py+2-5