print output in gradio box
Browse files27 unmodified lines28293031323334353627 unmodified linesoutput = model.generate(**inputs, max_new_tokens=100)generated_text = processor.batch_decode(output, skip_special_tokens=True)for text in generated_text:print(text.split("ASSISTANT:")[-1])print()demo = gr.Interface(fn=text_to_image,inputs=[27 unmodified lines28293031323334353627 unmodified linesoutput = model.generate(**inputs, max_new_tokens=100)generated_text = processor.batch_decode(output, skip_special_tokens=True)for text in generated_text:return text.split("ASSISTANT:")[-1]demo = gr.Interface(fn=text_to_image,inputs=[
app.py+2-2