Spaces:
Running
on
Zero
Running
on
Zero
alfredplpl
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -42,11 +42,11 @@ 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": prompt },
|
50 |
]
|
51 |
output = upsampler(messages, **generation_args)
|
52 |
upsampled_prompt=output[0]['generated_text']
|
|
|
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)
|
52 |
upsampled_prompt=output[0]['generated_text']
|