prithivMLmods commited on
Commit
307f2c5
·
verified ·
1 Parent(s): 667626e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -22
app.py CHANGED
@@ -101,29 +101,14 @@ def generate(
101
  print(image_paths)
102
  return image_paths, seed
103
 
104
-
105
- def load_predefined_images():
106
- predefined_images = [
107
- "assets/11.png",
108
- "assets/22.png",
109
- "assets/33.png",
110
- "assets/44.png",
111
- "assets/55.webp",
112
- "assets/66.png",
113
- "assets/77.png",
114
- "assets/88.png",
115
- "assets/99.png",
116
- ]
117
- return predefined_images
118
-
119
-
120
-
121
  examples = [
122
- "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",
 
 
 
123
  "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",
124
  ]
125
 
126
-
127
  css = '''
128
  .gradio-container{max-width: 595px !important}
129
  h1{text-align:center}
@@ -225,9 +210,6 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
225
  api_name="run",
226
  )
227
 
228
- gr.Markdown("### Generated Images")
229
- predefined_gallery = gr.Gallery(label="Generated Images", columns=3, show_label=False, value=load_predefined_images())
230
-
231
  gr.Markdown("**Disclaimer/Note:**")
232
 
233
  gr.Markdown(DESCRIPTIONy)
 
101
  print(image_paths)
102
  return image_paths, seed
103
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  examples = [
105
+
106
+ "Woman in a red jacket, snowy, in the style of hyper-realistic portraiture, caninecore, mountainous vistas, timeless beauty, palewave, iconic, distinctive noses --ar 72:101 --stylize 750 --v 6",
107
+ "Super Realism, Headshot of handsome young man, wearing dark gray sweater with buttons and big shawl collar, brown hair and short beard, serious look on his face, black background, soft studio lighting, portrait photography --ar 85:128 --v 6.0 --style",
108
+ "Super Realism, High-resolution photograph, woman, UHD, photorealistic, shot on a Sony A7III --chaos 20 --ar 1:2 --style raw --stylize 250",
109
  "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",
110
  ]
111
 
 
112
  css = '''
113
  .gradio-container{max-width: 595px !important}
114
  h1{text-align:center}
 
210
  api_name="run",
211
  )
212
 
 
 
 
213
  gr.Markdown("**Disclaimer/Note:**")
214
 
215
  gr.Markdown(DESCRIPTIONy)