Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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":
|
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
|
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"))
|