Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def change_style():
|
|
| 20 |
|
| 21 |
# Changign the walls' color function
|
| 22 |
def change_color(image,color):
|
| 23 |
-
# Construct the
|
| 24 |
prompt = f"paint the walls with {color} color "
|
| 25 |
|
| 26 |
# Text CFG (guidance_scale) controls how strongly the model follows the prompt
|
|
@@ -67,7 +67,7 @@ def edit_image(image, instruction):
|
|
| 67 |
# Gradio interface for image editing
|
| 68 |
def image_interface():
|
| 69 |
with gr.Blocks() as demo_color:
|
| 70 |
-
gr.Markdown("##
|
| 71 |
|
| 72 |
# Image upload
|
| 73 |
image_input = gr.Image(type="pil", label="Upload Room Image")
|
|
|
|
| 20 |
|
| 21 |
# Changign the walls' color function
|
| 22 |
def change_color(image,color):
|
| 23 |
+
# Construct the color prompt
|
| 24 |
prompt = f"paint the walls with {color} color "
|
| 25 |
|
| 26 |
# Text CFG (guidance_scale) controls how strongly the model follows the prompt
|
|
|
|
| 67 |
# Gradio interface for image editing
|
| 68 |
def image_interface():
|
| 69 |
with gr.Blocks() as demo_color:
|
| 70 |
+
gr.Markdown("## Painting Color Changing App")
|
| 71 |
|
| 72 |
# Image upload
|
| 73 |
image_input = gr.Image(type="pil", label="Upload Room Image")
|