Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,6 @@ f = modal.Cls.lookup("casa-interior-hf-v1", "DesignModel")
|
|
4 |
|
5 |
def casa_ai_run(dict=None, text=None):
|
6 |
|
7 |
-
print(dict.keys())
|
8 |
image = dict["background"].convert("RGB")
|
9 |
mask = dict["layers"][0].convert("RGB")
|
10 |
|
@@ -21,7 +20,7 @@ title = "Casa-AI Demo"
|
|
21 |
description = "A Gradio interface to use CasaAI for virtual staging"
|
22 |
|
23 |
demo = gr.Interface(casa_ai_run,
|
24 |
-
inputs = [gr.ImageEditor(sources='upload', brush=gr.Brush(colors=["#000000"]), elem_id="image_upload", type="pil", label="Upload", layers=False, eraser=
|
25 |
gr.Textbox(label="Prompt to design room"),
|
26 |
],
|
27 |
outputs = [
|
|
|
4 |
|
5 |
def casa_ai_run(dict=None, text=None):
|
6 |
|
|
|
7 |
image = dict["background"].convert("RGB")
|
8 |
mask = dict["layers"][0].convert("RGB")
|
9 |
|
|
|
20 |
description = "A Gradio interface to use CasaAI for virtual staging"
|
21 |
|
22 |
demo = gr.Interface(casa_ai_run,
|
23 |
+
inputs = [gr.ImageEditor(sources='upload', brush=gr.Brush(colors=["#000000"]), elem_id="image_upload", type="pil", label="Upload", layers=False, eraser=True, transforms=[]),
|
24 |
gr.Textbox(label="Prompt to design room"),
|
25 |
],
|
26 |
outputs = [
|