prithivMLmods commited on
Commit
a1ffba9
·
verified ·
1 Parent(s): ee317af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -52
app.py CHANGED
@@ -110,7 +110,7 @@ def load_predefined_images():
110
 
111
 
112
  examples = [
113
- "A portrait of an attractive woman in her late twenties with light brown hair and purple, wearing large a yellow sweater. She is looking directly at the camera, standing outdoors near trees.. --ar 128:85 --v 6.0 --style raw",
114
  "A photo of the model wearing a white bodysuit and beige trench coat, posing in front of a train station with hands on head, soft light, sunset, fashion photography, high resolution, 35mm lens, f/22, natural lighting, global illumination. --ar 85:128 --v 6.0 --style raw",
115
  ]
116
 
@@ -121,55 +121,8 @@ h1{text-align:center}
121
  footer {
122
  visibility: hidden
123
  }
124
- @keyframes snow-fall {
125
- 0% { top: -10px; }
126
- 100% { top: 100%; }
127
- }
128
-
129
- .snowflake {
130
- position: fixed;
131
- top: -10px;
132
- width: 10px;
133
- height: 10px;
134
- background: #00f;
135
- border-radius: 50%;
136
- opacity: 0.8;
137
- pointer-events: none;
138
- animation: snow-fall linear infinite;
139
- }
140
-
141
- .snowfall {
142
- position: fixed;
143
- top: 0;
144
- left: 0;
145
- width: 100%;
146
- height: 100%;
147
- pointer-events: none;
148
- }
149
-
150
  '''
151
 
152
- # Add this JavaScript to generate snowfall effect
153
- javascript = """
154
- function createSnowflakes() {
155
- const snowflakeCount = 50;
156
- const snowfallContainer = document.createElement('div');
157
- snowfallContainer.classList.add('snowfall');
158
- document.body.appendChild(snowfallContainer);
159
-
160
- for (let i = 0; i < snowflakeCount; i++) {
161
- const snowflake = document.createElement('div');
162
- snowflake.classList.add('snowflake');
163
- snowflake.style.left = `${Math.random() * 100}%`;
164
- snowflake.style.animationDuration = `${Math.random() * 3 + 2}s`;
165
- snowflake.style.animationDelay = `${Math.random() * 2}s`;
166
- snowfallContainer.appendChild(snowflake);
167
- }
168
- }
169
-
170
- document.addEventListener('DOMContentLoaded', createSnowflakes);
171
- """
172
-
173
  with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
174
  gr.Markdown(DESCRIPTIONz)
175
  with gr.Group():
@@ -272,9 +225,6 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
272
  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.")
273
 
274
  gr.Markdown("🔥users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
275
-
276
- # Include the JavaScript for snowfall effect
277
- gr.HTML(f"<script>{javascript}</script>")
278
-
279
  if __name__ == "__main__":
280
  demo.queue(max_size=40).launch()
 
110
 
111
 
112
  examples = [
113
+ "A portrait of an attractive woman in her late twenties with light brown hair and purple, wearing large a a yellow sweater. She is looking directly at the camera, standing outdoors near trees.. --ar 128:85 --v 6.0 --style raw",
114
  "A photo of the model wearing a white bodysuit and beige trench coat, posing in front of a train station with hands on head, soft light, sunset, fashion photography, high resolution, 35mm lens, f/22, natural lighting, global illumination. --ar 85:128 --v 6.0 --style raw",
115
  ]
116
 
 
121
  footer {
122
  visibility: hidden
123
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  '''
125
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
127
  gr.Markdown(DESCRIPTIONz)
128
  with gr.Group():
 
225
  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.")
226
 
227
  gr.Markdown("🔥users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
228
+
 
 
 
229
  if __name__ == "__main__":
230
  demo.queue(max_size=40).launch()