alfredplpl
commited on
Commit
•
1078884
1
Parent(s):
9ce97bf
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ MAX_IMAGE_SIZE = 1344
|
|
42 |
@spaces.GPU
|
43 |
def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps, progress=gr.Progress(track_tqdm=True)):
|
44 |
messages = [
|
45 |
-
{"role": "user", "content": "
|
46 |
{"role": "assistant", "content": " 1girl, anime style, looking at viewer, serene expression, gentle smile, multicolored hair, rainbow gradient hair, wavy long hair, heterochromia, purple left eye, blue right eye, pastel color scheme, magical girl aesthetic, white text overlay \"Emi 3\", centered text, modern typography, ethereal lighting, soft glow, fantasy atmosphere, rainbow gradient background, dreamy atmosphere, sparkles, light particles, magical effects, depth of field, bokeh effect"},
|
47 |
{"role": "user", "content": "次のプロンプトを想像を膨らませて英語に翻訳してください。「美しい花と美少女」"},
|
48 |
{"role": "assistant", "content": "In a sunlit garden on a spring afternoon, 1girl stands amidst blooming flowers. Gentle sunlight filters through cherry blossoms, illuminating her graceful figure. Her long hair sways in the breeze, and her white dress flows with the spring wind. Roses bloom abundantly around her, their fragrance filling the air. Her clear eyes and gentle smile create a captivating presence. The scene is a painting-like vision, with her surrounded by pastel-colored flowers in full bloom."},
|
@@ -70,8 +70,10 @@ def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance
|
|
70 |
return image, seed, upsampled_prompt
|
71 |
|
72 |
examples = [
|
|
|
73 |
"炎の魔法使いの少女",
|
74 |
"雷の魔法使いの少女",
|
|
|
75 |
]
|
76 |
|
77 |
css="""
|
|
|
42 |
@spaces.GPU
|
43 |
def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps, progress=gr.Progress(track_tqdm=True)):
|
44 |
messages = [
|
45 |
+
{"role": "user", "content": "次のプロンプトを想像を膨らませて英語に翻訳してください。「目も髪もカラフルに染まっている美少女がいて、虹のような背景に\"Emi 3\"と白い文字が書かれている」"},
|
46 |
{"role": "assistant", "content": " 1girl, anime style, looking at viewer, serene expression, gentle smile, multicolored hair, rainbow gradient hair, wavy long hair, heterochromia, purple left eye, blue right eye, pastel color scheme, magical girl aesthetic, white text overlay \"Emi 3\", centered text, modern typography, ethereal lighting, soft glow, fantasy atmosphere, rainbow gradient background, dreamy atmosphere, sparkles, light particles, magical effects, depth of field, bokeh effect"},
|
47 |
{"role": "user", "content": "次のプロンプトを想像を膨らませて英語に翻訳してください。「美しい花と美少女」"},
|
48 |
{"role": "assistant", "content": "In a sunlit garden on a spring afternoon, 1girl stands amidst blooming flowers. Gentle sunlight filters through cherry blossoms, illuminating her graceful figure. Her long hair sways in the breeze, and her white dress flows with the spring wind. Roses bloom abundantly around her, their fragrance filling the air. Her clear eyes and gentle smile create a captivating presence. The scene is a painting-like vision, with her surrounded by pastel-colored flowers in full bloom."},
|
|
|
70 |
return image, seed, upsampled_prompt
|
71 |
|
72 |
examples = [
|
73 |
+
"目も髪もカラフルに染まっている美少女がいて、虹のような背景に\"Emi 3\"と白い文字が書かれている",
|
74 |
"炎の魔法使いの少女",
|
75 |
"雷の魔法使いの少女",
|
76 |
+
"漫画風の富士山",
|
77 |
]
|
78 |
|
79 |
css="""
|