Spaces:
Runtime error
Runtime error
Songwei Ge commited on
Commit Β·
9ffa534
1
Parent(s): d0745b6
demo
Browse filesFiles changed (4)
142 unmodified lines143144145146147148149150151152153154155156157158159160161162163164165166167168169170142 unmodified lineswith gr.Row():examples = [['{"ops":[{"insert":"a Gothic "},{"attributes":{"color":"#b26b00"},"insert":"church"},{"insert":" in a the sunset with a beautiful landscape in the background.\n"}]}','',512,512,6,],['{"ops": [{"insert": "A pizza with "}, {"attributes": {"size": "50px"}, "insert": "pineapples"}, {"insert": ", pepperonis, and mushrooms on the top, 4k, photorealistic\n"}]}','blurry, art, painting, rendering, drawing, sketch, ugly, duplicate, morbid, mutilated, mutated, deformed, disfigured low quality, worst quality',768,896,6,],['{"ops":[{"insert":"a "},{"attributes":{"font":"mirza"},"insert":"beautiful garden"},{"insert":" with a "},{"attributes":{"font":"roboto"},"insert":"snow mountain in the background"},{"insert":"\n"}]}','',512,512,3,],['{"ops":[{"insert":"A close-up 4k dslr photo of a "},{"attributes":{"link":"A cat wearing sunglasses and a bandana around its neck."},"insert":"cat"},{"insert":" riding a scooter. Palm trees in the background.\n"}]}','',512,512,142 unmodified lines143144145146147148149150151152153154155156157158159160161162163164165166167168169170142 unmodified lineswith gr.Row():examples = [['{"ops":[{"insert":"a Gothic "},{"attributes":{"color":"#b26b00"},"insert":"church"},{"insert":" in a the sunset with a beautiful landscape in the background."}]}','',512,512,6,],['{"ops": [{"insert": "A pizza with "}, {"attributes": {"size": "50px"}, "insert": "pineapples"}, {"insert": ", pepperonis, and mushrooms on the top, 4k, photorealistic"}]}','blurry, art, painting, rendering, drawing, sketch, ugly, duplicate, morbid, mutilated, mutated, deformed, disfigured low quality, worst quality',768,896,6,],['{"ops":[{"insert":"a "},{"attributes":{"font":"mirza"},"insert":"beautiful garden"},{"insert":" with a "},{"attributes":{"font":"roboto"},"insert":"snow mountain in the background"},{"insert":""}]}','',512,512,3,],['{"ops":[{"insert":"A close-up 4k dslr photo of a "},{"attributes":{"link":"A cat wearing sunglasses and a bandana around its neck."},"insert":"cat"},{"insert":" riding a scooter. Palm trees in the background."}]}','',512,512,
81 unmodified lines82838485868788899081 unmodified linesimg = np.frombuffer(canvas.tostring_rgb(), dtype='uint8').reshape((height, width, 3))fig.tight_layout()plt.savefig(os.path.join(save_dir, 'token_mapes_seed%d_%s.png' % (seed, atten_names[i])), dpi=100)plt.close('all')return img81 unmodified lines82838485868781 unmodified linesimg = np.frombuffer(canvas.tostring_rgb(), dtype='uint8').reshape((height, width, 3))fig.tight_layout()return img
app.py+4-4
utils/__pycache__/attention_utils.cpython-38.pyc
utils/__pycache__/richtext_utils.cpython-38.pyc
utils/attention_utils.py-3