Spaces:
Build error
Build error
Update app.py
Browse files45 unmodified lines464748495051522 unmodified lines55565758596061626345 unmodified linesdef stream_chat(message: str, history: list, temperature: float, max_new_tokens: int, top_p: float, top_k: int, penalty: float):print(history)resp = model.stream_chat(tokenizer,query = message,history = history,2 unmodified linestop_p = top_p,top_k = top_k,temperature = temperature,)print(resp)yield respchatbot = gr.Chatbot(height=600, placeholder=PLACEHOLDER)45 unmodified lines464748495051522 unmodified lines55565758596061626345 unmodified linesdef stream_chat(message: str, history: list, temperature: float, max_new_tokens: int, top_p: float, top_k: int, penalty: float):print(history)for resp, history in model.stream_chat(tokenizer,query = message,history = history,2 unmodified linestop_p = top_p,top_k = top_k,temperature = temperature,):print(resp)yield respchatbot = gr.Chatbot(height=600, placeholder=PLACEHOLDER)
app.py+4-4