HelloAI1 commited on
Commit
e222643
·
verified ·
1 Parent(s): 72eed8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -78,8 +78,10 @@ def image_to_base64(image_path):
78
 
79
 
80
  def flip_text(prompt, negative_prompt, steps, cfg_scale, width, height, seed):
 
 
81
  result = prodia_client.generate({
82
- "prompt": prompt,
83
  "negative_prompt": negative_prompt,
84
  "model": "sd_xl_base_1.0.safetensors [be9edd61]",
85
  "steps": steps,
@@ -122,7 +124,7 @@ css = """
122
  """
123
 
124
  # Load the default image
125
- default_image_path = "image (6).png"
126
  default_image = Image.open(default_image_path)
127
 
128
  prodia_client = Prodia(api_key=os.getenv("API_KEY"))
 
78
 
79
 
80
  def flip_text(prompt, negative_prompt, steps, cfg_scale, width, height, seed):
81
+ # Modify the prompt
82
+ modified_prompt = f"Make a Pixar style image {prompt} 8K"
83
  result = prodia_client.generate({
84
+ "prompt": modified_prompt,
85
  "negative_prompt": negative_prompt,
86
  "model": "sd_xl_base_1.0.safetensors [be9edd61]",
87
  "steps": steps,
 
124
  """
125
 
126
  # Load the default image
127
+ default_image_path = "image(6).png"
128
  default_image = Image.open(default_image_path)
129
 
130
  prodia_client = Prodia(api_key=os.getenv("API_KEY"))