ginipick commited on
Commit
5f66cd1
·
verified ·
1 Parent(s): 41e36fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -170,7 +170,7 @@ with gr.Blocks(css=css, title="Workflow Canvas") as demo:
170
  value=example_prompts["Product Design"][0]
171
  )
172
  pd_generate = gr.Button("Generate Product Design")
173
- pd_image = gr.Image(label="Generated Product Design")
174
  with gr.Accordion("Example Prompts", open=True, elem_classes="example-accordion"):
175
  for ex in example_prompts["Product Design"]:
176
  gr.Button(ex, variant="secondary").click(fn=lambda ex=ex: set_prompt(ex), outputs=pd_prompt)
@@ -184,7 +184,7 @@ with gr.Blocks(css=css, title="Workflow Canvas") as demo:
184
  value=example_prompts["Mockup"][0]
185
  )
186
  mock_generate = gr.Button("Generate Mockup")
187
- mock_image = gr.Image(label="Generated Mockup")
188
  with gr.Accordion("Example Prompts", open=True, elem_classes="example-accordion"):
189
  for ex in example_prompts["Mockup"]:
190
  gr.Button(ex, variant="secondary").click(fn=lambda ex=ex: set_prompt(ex), outputs=mock_prompt)
@@ -198,7 +198,7 @@ with gr.Blocks(css=css, title="Workflow Canvas") as demo:
198
  value=example_prompts["Infographic"][0]
199
  )
200
  info_generate = gr.Button("Generate Infographic")
201
- info_image = gr.Image(label="Generated Infographic")
202
  with gr.Accordion("Example Prompts", open=True, elem_classes="example-accordion"):
203
  for ex in example_prompts["Infographic"]:
204
  gr.Button(ex, variant="secondary").click(fn=lambda ex=ex: set_prompt(ex), outputs=info_prompt)
@@ -212,7 +212,7 @@ with gr.Blocks(css=css, title="Workflow Canvas") as demo:
212
  value=example_prompts["Diagram"][0]
213
  )
214
  diag_generate = gr.Button("Generate Diagram")
215
- diag_image = gr.Image(label="Generated Diagram")
216
  with gr.Accordion("Example Prompts", open=True, elem_classes="example-accordion"):
217
  for ex in example_prompts["Diagram"]:
218
  gr.Button(ex, variant="secondary").click(fn=lambda ex=ex: set_prompt(ex), outputs=diag_prompt)
@@ -226,7 +226,7 @@ with gr.Blocks(css=css, title="Workflow Canvas") as demo:
226
  value=example_prompts["Flowchart"][0]
227
  )
228
  flow_generate = gr.Button("Generate Flowchart")
229
- flow_image = gr.Image(label="Generated Flowchart")
230
  with gr.Accordion("Example Prompts", open=True, elem_classes="example-accordion"):
231
  for ex in example_prompts["Flowchart"]:
232
  gr.Button(ex, variant="secondary").click(fn=lambda ex=ex: set_prompt(ex), outputs=flow_prompt)
 
170
  value=example_prompts["Product Design"][0]
171
  )
172
  pd_generate = gr.Button("Generate Product Design")
173
+ pd_image = gr.Image(label="Generated Product Design", value="w1.webp")
174
  with gr.Accordion("Example Prompts", open=True, elem_classes="example-accordion"):
175
  for ex in example_prompts["Product Design"]:
176
  gr.Button(ex, variant="secondary").click(fn=lambda ex=ex: set_prompt(ex), outputs=pd_prompt)
 
184
  value=example_prompts["Mockup"][0]
185
  )
186
  mock_generate = gr.Button("Generate Mockup")
187
+ mock_image = gr.Image(label="Generated Mockup", value="w2.webp")
188
  with gr.Accordion("Example Prompts", open=True, elem_classes="example-accordion"):
189
  for ex in example_prompts["Mockup"]:
190
  gr.Button(ex, variant="secondary").click(fn=lambda ex=ex: set_prompt(ex), outputs=mock_prompt)
 
198
  value=example_prompts["Infographic"][0]
199
  )
200
  info_generate = gr.Button("Generate Infographic")
201
+ info_image = gr.Image(label="Generated Infographic", value="w3.webp")
202
  with gr.Accordion("Example Prompts", open=True, elem_classes="example-accordion"):
203
  for ex in example_prompts["Infographic"]:
204
  gr.Button(ex, variant="secondary").click(fn=lambda ex=ex: set_prompt(ex), outputs=info_prompt)
 
212
  value=example_prompts["Diagram"][0]
213
  )
214
  diag_generate = gr.Button("Generate Diagram")
215
+ diag_image = gr.Image(label="Generated Diagram", value="w4.webp")
216
  with gr.Accordion("Example Prompts", open=True, elem_classes="example-accordion"):
217
  for ex in example_prompts["Diagram"]:
218
  gr.Button(ex, variant="secondary").click(fn=lambda ex=ex: set_prompt(ex), outputs=diag_prompt)
 
226
  value=example_prompts["Flowchart"][0]
227
  )
228
  flow_generate = gr.Button("Generate Flowchart")
229
+ flow_image = gr.Image(label="Generated Flowchart", value="w5.webp")
230
  with gr.Accordion("Example Prompts", open=True, elem_classes="example-accordion"):
231
  for ex in example_prompts["Flowchart"]:
232
  gr.Button(ex, variant="secondary").click(fn=lambda ex=ex: set_prompt(ex), outputs=flow_prompt)