Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -70,24 +70,6 @@ def send_it4(inputs, noise_level, proc1=proc1):
|
|
70 |
|
71 |
|
72 |
with gr.Blocks(css='style.css') as demo:
|
73 |
-
gr.HTML(
|
74 |
-
"""
|
75 |
-
<div style="text-align: center; max-width: 650px; margin: 0 auto;">
|
76 |
-
<div>
|
77 |
-
<h1 style="font-weight: 900; font-size: 3rem; margin-bottom:20px;">
|
78 |
-
Dreamlike Photoreal 2.0
|
79 |
-
</h1>
|
80 |
-
</div>
|
81 |
-
<p style="margin-bottom: 10px; font-size: 96%">
|
82 |
-
Noise Level: Controls how much randomness is added to the input before it is sent to the model. Higher noise level produces more diverse outputs, while lower noise level produces similar outputs,
|
83 |
-
<a href="https://twitter.com/DavidJohnstonxx/">created by Phenomenon1981</a>.
|
84 |
-
</p>
|
85 |
-
<p style="margin-bottom: 10px; font-size: 98%">
|
86 |
-
❤️ Press the Like Button if you enjoy my space! ❤️</a>
|
87 |
-
</p>
|
88 |
-
</div>
|
89 |
-
"""
|
90 |
-
)
|
91 |
with gr.Column(elem_id="col-container"):
|
92 |
with gr.Row(variant="compact"):
|
93 |
input_text = gr.Textbox(
|
@@ -135,20 +117,5 @@ with gr.Blocks(css='style.css') as demo:
|
|
135 |
run4.click(send_it4, inputs=[prompt, noise_level], outputs=[output4])
|
136 |
|
137 |
|
138 |
-
|
139 |
-
with gr.Row():
|
140 |
-
gr.HTML(
|
141 |
-
"""
|
142 |
-
<div class="footer">
|
143 |
-
<p> Demo for <a href="https://huggingface.co/dreamlike-art/dreamlike-photoreal-2.0">Dreamlike Photoreal 2.0</a> Stable Diffusion model
|
144 |
-
</p>
|
145 |
-
</div>
|
146 |
-
<div class="acknowledgments" style="font-size: 115%">
|
147 |
-
<p> Unleash your creative side and generate mesmerizing images with just a few clicks! Enter a spark of inspiration in the "Basic Idea" text box and click the "Magic Prompt" button to elevate it to a polished masterpiece. Make any final tweaks in the "Full Prompt" box and hit the "Generate Images" button to watch your vision come to life. Experiment with the "Noise Level" for a diverse range of outputs, from similar to wildly unique. Let the fun begin!
|
148 |
-
</p>
|
149 |
-
</div>
|
150 |
-
"""
|
151 |
-
)
|
152 |
-
|
153 |
demo.launch(enable_queue=True, inline=True)
|
154 |
block.queue(concurrency_count=100)
|
|
|
70 |
|
71 |
|
72 |
with gr.Blocks(css='style.css') as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
with gr.Column(elem_id="col-container"):
|
74 |
with gr.Row(variant="compact"):
|
75 |
input_text = gr.Textbox(
|
|
|
117 |
run4.click(send_it4, inputs=[prompt, noise_level], outputs=[output4])
|
118 |
|
119 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
demo.launch(enable_queue=True, inline=True)
|
121 |
block.queue(concurrency_count=100)
|