Spaces:
Build error
Build error
Update app.py
Browse files45 unmodified lines46474849495051522 unmodified lines55565758596058596061626345 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( for resp, history in model.stream_chat( tokenizer, query = message, history = history,2 unmodified lines top_p = top_p, top_k = top_k, temperature = temperature, ) print(resp) yield resp ): print(resp) yield resp
chatbot = gr.Chatbot(height=600, placeholder=PLACEHOLDER)app.py+4-4