Spaces:
Running
on
Zero
Running
on
Zero
prithivMLmods
commited on
Commit
•
d588458
1
Parent(s):
5cb6d84
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ import spaces
|
|
20 |
import torch
|
21 |
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
|
22 |
|
23 |
-
DESCRIPTIONz= """## EPIC REALISM
|
24 |
|
25 |
"""
|
26 |
def save_image(img):
|
@@ -133,7 +133,7 @@ examples = [
|
|
133 |
]
|
134 |
|
135 |
css = '''
|
136 |
-
.gradio-container{max-width:
|
137 |
h1{text-align:center}
|
138 |
footer {
|
139 |
visibility: hidden
|
@@ -156,19 +156,18 @@ def load_predefined_images():
|
|
156 |
|
157 |
|
158 |
|
159 |
-
with gr.Blocks(css=css, theme="
|
160 |
gr.Markdown(DESCRIPTIONz)
|
161 |
-
with gr.
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
result = gr.Gallery(label="Result", columns=1, preview=True, show_label=False)
|
172 |
|
173 |
with gr.Accordion("Advanced options", open=False, visible=False):
|
174 |
use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=True)
|
@@ -267,9 +266,19 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
267 |
|
268 |
gr.Markdown("**Disclaimer/Note:**")
|
269 |
|
270 |
-
gr.Markdown("🙀This space provides realistic image generation, which works better for human faces and portraits. Realistic trigger works properly, better for photorealistic trigger words, close-up shots, face diffusion, male, female characters.")
|
271 |
|
272 |
-
gr.Markdown("⚠️users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
|
273 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
274 |
if __name__ == "__main__":
|
275 |
demo.queue(max_size=30).launch()
|
|
|
20 |
import torch
|
21 |
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
|
22 |
|
23 |
+
DESCRIPTIONz= """## EPIC REALISM
|
24 |
|
25 |
"""
|
26 |
def save_image(img):
|
|
|
133 |
]
|
134 |
|
135 |
css = '''
|
136 |
+
.gradio-container{max-width: 585px !important}
|
137 |
h1{text-align:center}
|
138 |
footer {
|
139 |
visibility: hidden
|
|
|
156 |
|
157 |
|
158 |
|
159 |
+
with gr.Blocks(css=css, theme="YTheme/Minecraft") as demo:
|
160 |
gr.Markdown(DESCRIPTIONz)
|
161 |
+
with gr.Row():
|
162 |
+
prompt = gr.Text(
|
163 |
+
label="Prompt",
|
164 |
+
show_label=False,
|
165 |
+
max_lines=1,
|
166 |
+
placeholder="Enter your prompt",
|
167 |
+
container=False,
|
168 |
+
)
|
169 |
+
run_button = gr.Button("Run", scale=0)
|
170 |
+
result = gr.Gallery(label="Result", columns=1, preview=True, show_label=False)
|
|
|
171 |
|
172 |
with gr.Accordion("Advanced options", open=False, visible=False):
|
173 |
use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=True)
|
|
|
266 |
|
267 |
gr.Markdown("**Disclaimer/Note:**")
|
268 |
|
269 |
+
#gr.Markdown("🙀This space provides realistic image generation, which works better for human faces and portraits. Realistic trigger works properly, better for photorealistic trigger words, close-up shots, face diffusion, male, female characters.")
|
270 |
|
271 |
+
#gr.Markdown("⚠️users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
|
272 |
|
273 |
+
gr.Markdown("""
|
274 |
+
<div style='text-align: justify;'>
|
275 |
+
🙀This space provides realistic image generation, which works better for human faces and portraits. Realistic trigger works properly, better for photorealistic trigger words, close-up shots, face diffusion, male, female characters.
|
276 |
+
</div>""")
|
277 |
+
|
278 |
+
gr.Markdown("""
|
279 |
+
<div style='text-align: justify;'>
|
280 |
+
⚠️Users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.
|
281 |
+
</div>""")
|
282 |
+
|
283 |
if __name__ == "__main__":
|
284 |
demo.queue(max_size=30).launch()
|