Spaces:
Build error
Build error
Commit ·
46f724e
1
Parent(s): c3e5a9b
Update app.py
Browse files11 unmodified lines121314151516171819 unmodified lines38394041424341424311 unmodified lines return prompt
def generate( prompt, history, temperature=0.2, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0, 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 lines yield output return output
iface = 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,)
app.py+1-4