Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,9 +12,7 @@ from typing import Tuple
|
|
| 12 |
import torch
|
| 13 |
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
|
| 14 |
|
| 15 |
-
DESCRIPTION = """
|
| 16 |
-
# DALL-E 3 xl
|
| 17 |
-
"""
|
| 18 |
|
| 19 |
def save_image(img):
|
| 20 |
unique_name = str(uuid.uuid4()) + ".png"
|
|
@@ -151,12 +149,12 @@ def generate(
|
|
| 151 |
return image_paths, seed
|
| 152 |
|
| 153 |
examples = [
|
| 154 |
-
"
|
| 155 |
-
"
|
| 156 |
-
"
|
| 157 |
-
"
|
| 158 |
-
"a
|
| 159 |
-
"
|
| 160 |
]
|
| 161 |
|
| 162 |
css = '''
|
|
@@ -166,6 +164,7 @@ footer {
|
|
| 166 |
visibility: hidden
|
| 167 |
}
|
| 168 |
'''
|
|
|
|
| 169 |
with gr.Blocks(css=css, theme="xiaobaiyuan/theme_brief") as demo:
|
| 170 |
gr.Markdown(DESCRIPTION)
|
| 171 |
gr.DuplicateButton(
|
|
@@ -268,6 +267,7 @@ with gr.Blocks(css=css, theme="xiaobaiyuan/theme_brief") as demo:
|
|
| 268 |
)
|
| 269 |
|
| 270 |
|
|
|
|
| 271 |
gr.on(
|
| 272 |
triggers=[
|
| 273 |
prompt.submit,
|
|
@@ -291,6 +291,8 @@ with gr.Blocks(css=css, theme="xiaobaiyuan/theme_brief") as demo:
|
|
| 291 |
outputs=[result, seed],
|
| 292 |
api_name="run",
|
| 293 |
)
|
| 294 |
-
|
|
|
|
|
|
|
| 295 |
if __name__ == "__main__":
|
| 296 |
demo.queue(max_size=20).launch(show_api=False, debug=False)
|
|
|
|
| 12 |
import torch
|
| 13 |
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
|
| 14 |
|
| 15 |
+
DESCRIPTION = """# DALL-E 4K"""
|
|
|
|
|
|
|
| 16 |
|
| 17 |
def save_image(img):
|
| 18 |
unique_name = str(uuid.uuid4()) + ".png"
|
|
|
|
| 149 |
return image_paths, seed
|
| 150 |
|
| 151 |
examples = [
|
| 152 |
+
"Masterpiece, Stunning, Best quality, a captivating space-themed artwork featuring the ethereal beauty of swirling nebulas and twinkling stars with an astronaut in it dark, blue themed",
|
| 153 |
+
"Space portal to another dimension, unreal engine 5, 8k resolution, trending on artstation, octane render, insanely detailed, hyperrealism extremely detailed epic masterwork",
|
| 154 |
+
"A realistic, dramatic image of two computer monitors, one iMac Pro and one other monitor, sitting on a desk in a well-lit office. The desk is cluttered with papers and other objects. The image is shot with a wide-angle lens, giving a sense of space and scale. --ar 9:16",
|
| 155 |
+
"A cat battle mage, sword and shild with runes, dramatic lighting, dynamic pose, dynamic camera, masterpiece, best quality, dark shadows, ((dark fantasy)), detailed, realistic, 8k uhd, high quality",
|
| 156 |
+
"A galaxy with blue water, a red star and many planets in one view, in the style of digital fantasy nubelas and cosmos, light black and violet, realistic nubelas paintings, james paick, steve henderson, ue5, cosmic horror --ar 8:5",
|
| 157 |
+
"General view of the interior of a spaceship with some windows to observe, planet mars outside, inside a man and a woman wearing futuristic uniforms, azure and beige color, realistic hyper-detailed rendering, hyper-realistic details, 32k uhd, masterpiece, photo, digital art, science fiction"
|
| 158 |
]
|
| 159 |
|
| 160 |
css = '''
|
|
|
|
| 164 |
visibility: hidden
|
| 165 |
}
|
| 166 |
'''
|
| 167 |
+
|
| 168 |
with gr.Blocks(css=css, theme="xiaobaiyuan/theme_brief") as demo:
|
| 169 |
gr.Markdown(DESCRIPTION)
|
| 170 |
gr.DuplicateButton(
|
|
|
|
| 267 |
)
|
| 268 |
|
| 269 |
|
| 270 |
+
|
| 271 |
gr.on(
|
| 272 |
triggers=[
|
| 273 |
prompt.submit,
|
|
|
|
| 291 |
outputs=[result, seed],
|
| 292 |
api_name="run",
|
| 293 |
)
|
| 294 |
+
|
| 295 |
+
|
| 296 |
+
|
| 297 |
if __name__ == "__main__":
|
| 298 |
demo.queue(max_size=20).launch(show_api=False, debug=False)
|