Spaces:
Sleeping
Sleeping
Update app.py
Browse files11 unmodified lines1213141516171821 unmodified lines4041424344454611 unmodified linesreturn promptdef generate(prompt, history, system_prompt, temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0,):temperature = float(temperature)if temperature < 1e-2:21 unmodified linesreturn outputmychatbot = gr.Chatbot(avatar_images=["./user.png", "./botm.png"], bubble_full_width=False, show_label=False, show_share_button=False, show_copy_button=True, likeable=True)demo = gr.ChatInterface(fn=generate,chatbot=mychatbot,11 unmodified lines1213141516171821 unmodified lines4041424344454611 unmodified linesreturn promptdef generate(prompt, history, system_prompt, temperature=0.3, max_new_tokens=256, top_p=0.9, repetition_penalty=1.0,):temperature = float(temperature)if temperature < 1e-2:21 unmodified linesreturn outputmychatbot = gr.Chatbot(avatar_images=["./user.png", "./botm.png"], bubble_full_width=False, show_label=False, show_copy_button=True, likeable=True)demo = gr.ChatInterface(fn=generate,chatbot=mychatbot,
app.py+2-2