Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -12,14 +12,7 @@ repo = "artificialguybr/TshirtDesignRedmond-V2" | |
| 12 | 
             
            def infer(color_prompt, dress_type_prompt, design_prompt, text):
         | 
| 13 | 
             
                # Build the full prompt
         | 
| 14 | 
             
                prompt = (
         | 
| 15 | 
            -
                    f"A single {color_prompt} colored {dress_type_prompt} with a bold, detailed {design_prompt} design printed on the front of the {dress_type_prompt},  | 
| 16 | 
            -
                )    
         | 
| 17 | 
            -
                # Conditional parts
         | 
| 18 | 
            -
                if text:
         | 
| 19 | 
            -
                    prompt += (
         | 
| 20 | 
            -
                        f" and {text} written on the {dress_type_prompt}. The contrast between the text and the calm background creates a striking visual"
         | 
| 21 | 
            -
                    )
         | 
| 22 | 
            -
                prompt += f"The image evokes a sense of modern sophistication, focusing solely on the {dress_type_prompt} and its design"
         | 
| 23 | 
             
                full_prompt = f"{prompt}"
         | 
| 24 |  | 
| 25 | 
             
                print("Generating image with prompt:", full_prompt)
         | 
|  | |
| 12 | 
             
            def infer(color_prompt, dress_type_prompt, design_prompt, text):
         | 
| 13 | 
             
                # Build the full prompt
         | 
| 14 | 
             
                prompt = (
         | 
| 15 | 
            +
                    f"A single {color_prompt} colored {dress_type_prompt} with a bold, detailed {design_prompt} design printed on the front of the {dress_type_prompt}, hanging effortlessly on a plain wall, its simplicity transformed by bold. The simplicity of the {dress_type_prompt} is transformed by the vibrant design, while soft light casts dynamic shadows, adding depth and emphasizing the crisp lines of the artwork and {text} written on the {dress_type_prompt}. The contrast between the text and the calm background creates a striking visual. The image evokes a sense of modern sophistication, focusing solely on the {dress_type_prompt} and its design"
         | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 16 | 
             
                full_prompt = f"{prompt}"
         | 
| 17 |  | 
| 18 | 
             
                print("Generating image with prompt:", full_prompt)
         |