Nifemi Alpine Durin commited on
Commit
7ca4dda
·
1 Parent(s): 5194396
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -17,8 +17,8 @@ def generate_image(brand_name, primary_color, secondary_color, description, targ
17
  "description": description,
18
  "target_audience": target_audience,
19
  "font": font,
20
- "heading_text": heading_text,
21
- "sub_heading_text": sub_heading_text,
22
  "logo_url": logo_url,
23
  "user_prompt": custom_graphic_prompt,
24
  "image_dimension": image_dimension
@@ -49,7 +49,7 @@ iface = gr.Interface(
49
  gr.components.Textbox(placeholder="Brief description of your brand", label="Description", lines=2),
50
  gr.components.Textbox(placeholder="Your Brand's target audience", label="Target Audience"),
51
  gr.components.Textbox(placeholder="Google Font Label i.e Rubik", label="Font"),
52
- gr.components.Textbox(value="", label="Logo Url"),
53
  gr.components.Textbox(placeholder="Heading text (not required)", label="Heading Text"),
54
  gr.components.Textbox(placeholder="Paragraph text (not required)", label="Sub Heading Text"),
55
  gr.components.Textbox(value="375x667", label="Image Dimension"),
 
17
  "description": description,
18
  "target_audience": target_audience,
19
  "font": font,
20
+ "heading_text": heading_text or "",
21
+ "sub_heading_text": sub_heading_text or "",
22
  "logo_url": logo_url,
23
  "user_prompt": custom_graphic_prompt,
24
  "image_dimension": image_dimension
 
49
  gr.components.Textbox(placeholder="Brief description of your brand", label="Description", lines=2),
50
  gr.components.Textbox(placeholder="Your Brand's target audience", label="Target Audience"),
51
  gr.components.Textbox(placeholder="Google Font Label i.e Rubik", label="Font"),
52
+ gr.components.Textbox(value="", label="Logo Url"),
53
  gr.components.Textbox(placeholder="Heading text (not required)", label="Heading Text"),
54
  gr.components.Textbox(placeholder="Paragraph text (not required)", label="Sub Heading Text"),
55
  gr.components.Textbox(value="375x667", label="Image Dimension"),