gaur3009 commited on
Commit
cc692bc
·
verified ·
1 Parent(s): 69d2a66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -11,13 +11,14 @@ repo = "artificialguybr/TshirtDesignRedmond-V2"
11
  trigger_word = "T shirt design, TshirtDesignAF, "
12
 
13
  # Function to generate image based on the prompt
14
- def generate_image(a, color_prompt, dress_type_prompt, design_prompt, text, shadows):
15
  prompt_parts = [
16
  a,
17
  color_prompt,
18
  dress_type_prompt,
19
  design_prompt,
20
- "hangs effortlessly on a plain grey wall, its simplicity transformed by bold",
 
21
  ]
22
 
23
  # Optional parts
@@ -26,8 +27,6 @@ def generate_image(a, color_prompt, dress_type_prompt, design_prompt, text, shad
26
  contrast = "The contrast between the text and the calm background creates a striking visual"
27
  prompt_parts.extend([typography, text, contrast])
28
 
29
- prompt_parts.append(shadows)
30
-
31
  # Combine all parts into a full prompt
32
  prompt = " ".join([part for part in prompt_parts if part])
33
 
@@ -83,7 +82,7 @@ iface = gr.Interface(
83
  outputs="image",
84
  title="Clothe Designs to use in our img2img model",
85
  description="Make designs for your clothes",
86
- examples=[["a part", "Red", "T-shirt", "Simple design", "Stylish Text"]]
87
  )
88
 
89
  print("Launching Gradio interface...")
 
11
  trigger_word = "T shirt design, TshirtDesignAF, "
12
 
13
  # Function to generate image based on the prompt
14
+ def generate_image(a, color_prompt, dress_type_prompt, design_prompt, prompt_part5, typography, text, contrast, shadows):
15
  prompt_parts = [
16
  a,
17
  color_prompt,
18
  dress_type_prompt,
19
  design_prompt,
20
+ prompt_part5 = "hangs effortlessly on a plain grey wall, its simplicity transformed by bold",
21
+ shadows = "Soft light casts dynamic shadows, adding depth and emphasizing the crisp lines of the design, evoking a sense of modern sophistication."
22
  ]
23
 
24
  # Optional parts
 
27
  contrast = "The contrast between the text and the calm background creates a striking visual"
28
  prompt_parts.extend([typography, text, contrast])
29
 
 
 
30
  # Combine all parts into a full prompt
31
  prompt = " ".join([part for part in prompt_parts if part])
32
 
 
82
  outputs="image",
83
  title="Clothe Designs to use in our img2img model",
84
  description="Make designs for your clothes",
85
+ examples=[["a part", "Red", "T-shirt", "U-tube"]]
86
  )
87
 
88
  print("Launching Gradio interface...")