Spaces:
Sleeping
Sleeping
Commit ·
46f724e
1
Parent(s): c3e5a9b
Update app.py
Browse files11 unmodified lines1213141516171819 unmodified lines38394041424344454611 unmodified linesreturn promptdef generate(prompt, history, temperature=0.2, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0,):temperature = float(temperature)if temperature < 1e-2:19 unmodified linesyield outputreturn outputiface = gr.Interface(fn=generate, inputs="text", outputs="text")iface.launch()mychatbot = gr.Chatbot(avatar_images=["./user.png", "./botm.png"], bubble_full_width=False, show_label=False, show_copy_button=True, likeable=True,)11 unmodified lines1213141516171819 unmodified lines38394041424311 unmodified linesreturn promptdef generate(prompt, history, temperature=0.2, max_new_tokens=30000, top_p=0.95, repetition_penalty=1.0,):temperature = float(temperature)if temperature < 1e-2:19 unmodified linesyield outputreturn outputmychatbot = gr.Chatbot(avatar_images=["./user.png", "./botm.png"], bubble_full_width=False, show_label=False, show_copy_button=True, likeable=True,)
app.py+1-4