Spaces:
Paused
Paused
Update gradio
Browse files
README.md
CHANGED
@@ -5,7 +5,7 @@ colorFrom: green
|
|
5 |
colorTo: yellow
|
6 |
sdk: gradio
|
7 |
python_version: 3.12
|
8 |
-
sdk_version: 5.
|
9 |
suggested_hardware: a100-large
|
10 |
app_file: app.py
|
11 |
fullWidth: true
|
|
|
5 |
colorTo: yellow
|
6 |
sdk: gradio
|
7 |
python_version: 3.12
|
8 |
+
sdk_version: 5.12.0
|
9 |
suggested_hardware: a100-large
|
10 |
app_file: app.py
|
11 |
fullWidth: true
|
app.py
CHANGED
@@ -59,12 +59,12 @@ def calculate_optimal_dimensions(image: Image.Image) -> tuple[int, int]:
|
|
59 |
def infer(
|
60 |
furniture_image: Image.Image,
|
61 |
room_image: EditorValue,
|
62 |
-
prompt,
|
63 |
-
seed=42,
|
64 |
-
randomize_seed=False,
|
65 |
-
guidance_scale=3.5,
|
66 |
-
num_inference_steps=28,
|
67 |
-
progress=gr.Progress(track_tqdm=True), # noqa: ARG001, B008
|
68 |
):
|
69 |
_room_image = room_image["background"]
|
70 |
if _room_image is None:
|
@@ -191,7 +191,7 @@ with gr.Blocks(css=css) as demo:
|
|
191 |
label="Prompt",
|
192 |
show_label=False,
|
193 |
max_lines=1,
|
194 |
-
placeholder="Enter
|
195 |
container=False,
|
196 |
)
|
197 |
run_button = gr.Button("Run")
|
|
|
59 |
def infer(
|
60 |
furniture_image: Image.Image,
|
61 |
room_image: EditorValue,
|
62 |
+
prompt: str,
|
63 |
+
seed: int = 42,
|
64 |
+
randomize_seed: bool = False,
|
65 |
+
guidance_scale: float = 3.5,
|
66 |
+
num_inference_steps: int = 28,
|
67 |
+
progress: gr.Progress = gr.Progress(track_tqdm=True), # noqa: ARG001, B008
|
68 |
):
|
69 |
_room_image = room_image["background"]
|
70 |
if _room_image is None:
|
|
|
191 |
label="Prompt",
|
192 |
show_label=False,
|
193 |
max_lines=1,
|
194 |
+
placeholder="Enter a custom furniture description (optional)",
|
195 |
container=False,
|
196 |
)
|
197 |
run_button = gr.Button("Run")
|