Spaces:
Runtime error
Runtime error
fix: the last example in the generator
Browse files139 unmodified lines1401411421431441451461471481491501517 unmodified lines159160161162163164165139 unmodified lines)def evolve_text(x):return "".join(x for x in generate(x, "", "<|endoftext|>",temperature=0.9, max_new_tokens=10,top_p=0.95, repetition_penalty=1.2,seed=42,))with gr.Blocks(css=CSS) as demo:with gr.Row():7 unmodified lineschatbot.like(vote, None, None)chat_interface.render()output = gr.Textbox()textbox.change(fn=evolve_text, inputs=textbox, outputs=output,show_progress = False, status_tracker = None)139 unmodified lines1401411421431441451461471481491501517 unmodified lines159160161162163164165139 unmodified lines)def evolve_text(x):return generate(x, "", "<|endoftext|>",temperature=0.9, max_new_tokens=10,top_p=0.95, repetition_penalty=1.2,seed=42,)[-1]with gr.Blocks(css=CSS) as demo:with gr.Row():7 unmodified lineschatbot.like(vote, None, None)chat_interface.render()output = gr.Textbox(label="What you can expect coming:")textbox.change(fn=evolve_text, inputs=textbox, outputs=output,show_progress = False, status_tracker = None)
app.py+3-3