alfredplpl commited on
Commit
a37af71
1 Parent(s): 8ccf6e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -11
app.py CHANGED
@@ -42,10 +42,10 @@ 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": "An anime style illustration of a cool-looking teenage girl with an edgy, confident expression. She has piercing eyes, a slight smirk, and colorful hair that flows in the wind. "},
47
- {"role": "user", "content": "次のプロンプトを想像を膨らませて英語に翻訳してください。「実写風の女子高生」"},
48
- {"role": "assistant", "content": "A photorealistic image of a female high school student standing on a city street. She is wearing a traditional Japanese school uniform, consisting of a navy blue blazer, a white blouse, and a knee-length plaid skirt. "},
49
  {"role": "user", "content": f"次のプロンプトを想像を膨らませて英語に翻訳してください。「{prompt}」" },
50
  ]
51
  output = upsampler(messages, **generation_args)
@@ -70,12 +70,8 @@ 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
- "寿司でできた家に入っているコーギー",
78
- "バナナとアボカドが戦っている様子"
79
  ]
80
 
81
  css="""
@@ -89,7 +85,7 @@ with gr.Blocks(css=css) as demo:
89
 
90
  with gr.Column(elem_id="col-container"):
91
  gr.Markdown(f"""
92
- # 日本語が入力できる SD3.5 Large
93
  """)
94
 
95
  with gr.Row():
 
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."},
49
  {"role": "user", "content": f"次のプロンプトを想像を膨らませて英語に翻訳してください。「{prompt}」" },
50
  ]
51
  output = upsampler(messages, **generation_args)
 
70
  return image, seed, upsampled_prompt
71
 
72
  examples = [
73
+ "炎の魔法使いの少女",
74
+ "雷の魔法使いの少女",
 
 
 
 
75
  ]
76
 
77
  css="""
 
85
 
86
  with gr.Column(elem_id="col-container"):
87
  gr.Markdown(f"""
88
+ # 日本語が入力できる Emi 3
89
  """)
90
 
91
  with gr.Row():