Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -295,7 +295,7 @@ def infer(input_image, prompt, illumination_dropdown, direction_dropdown, seed=4
|
|
| 295 |
height=input_image.size[1],
|
| 296 |
generator=torch.Generator().manual_seed(seed),
|
| 297 |
).images[0]
|
| 298 |
-
return image, seed, prompt_with_template
|
| 299 |
|
| 300 |
def update_prompt_from_dropdown(illumination_option):
|
| 301 |
"""Update the prompt textbox based on dropdown selection"""
|
|
@@ -372,7 +372,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 372 |
)
|
| 373 |
|
| 374 |
with gr.Column():
|
| 375 |
-
result = gr.
|
| 376 |
final_prompt = gr.Textbox(label="Processed prompt", info="The structure of prompt to use if you download the LoRA")
|
| 377 |
# update prompt when dropdown changes
|
| 378 |
illumination_dropdown.change(
|
|
|
|
| 295 |
height=input_image.size[1],
|
| 296 |
generator=torch.Generator().manual_seed(seed),
|
| 297 |
).images[0]
|
| 298 |
+
return [input_image, image], seed, prompt_with_template
|
| 299 |
|
| 300 |
def update_prompt_from_dropdown(illumination_option):
|
| 301 |
"""Update the prompt textbox based on dropdown selection"""
|
|
|
|
| 372 |
)
|
| 373 |
|
| 374 |
with gr.Column():
|
| 375 |
+
result = gr.ImageSlider(label="Result", show_label=False, interactive=False)
|
| 376 |
final_prompt = gr.Textbox(label="Processed prompt", info="The structure of prompt to use if you download the LoRA")
|
| 377 |
# update prompt when dropdown changes
|
| 378 |
illumination_dropdown.change(
|