Spaces:
Sleeping
Sleeping
lichorosario
commited on
Commit
•
e9c5b8b
1
Parent(s):
25aee3f
feat: Update image slider label in app.py
Browse files
app.py
CHANGED
@@ -177,7 +177,7 @@ def refine_image(apply_refiner, image, model ,prompt, negative_prompt, num_infer
|
|
177 |
|
178 |
client = InferenceClient()
|
179 |
refined_image = client.image_to_image(
|
180 |
-
image,
|
181 |
prompt=prompt,
|
182 |
negative_prompt=negative_prompt,
|
183 |
num_inference_steps=num_inference_steps,
|
@@ -343,7 +343,7 @@ with gr.Blocks(css=css) as demo:
|
|
343 |
enhace_button = gr.Button("Enhance Image")
|
344 |
|
345 |
with gr.Column():
|
346 |
-
output_slider = ImageSlider(label="Before / After",
|
347 |
|
348 |
with gr.Accordion("Enhacer params", open=False):
|
349 |
upscale_reduce_factor = gr.Slider(minimum=1, maximum=10, step=1, label="Reduce Factor", info="1/n")
|
@@ -391,6 +391,7 @@ with gr.Blocks(css=css) as demo:
|
|
391 |
)
|
392 |
|
393 |
|
|
|
394 |
gallery.select(update_selection, outputs=[prompt_in, selected_info, selected_index])
|
395 |
|
396 |
demo.launch(show_error=True)
|
|
|
177 |
|
178 |
client = InferenceClient()
|
179 |
refined_image = client.image_to_image(
|
180 |
+
handle_file(image),
|
181 |
prompt=prompt,
|
182 |
negative_prompt=negative_prompt,
|
183 |
num_inference_steps=num_inference_steps,
|
|
|
343 |
enhace_button = gr.Button("Enhance Image")
|
344 |
|
345 |
with gr.Column():
|
346 |
+
output_slider = ImageSlider(label="Before / After", show_download_button=False)
|
347 |
|
348 |
with gr.Accordion("Enhacer params", open=False):
|
349 |
upscale_reduce_factor = gr.Slider(minimum=1, maximum=10, step=1, label="Reduce Factor", info="1/n")
|
|
|
391 |
)
|
392 |
|
393 |
|
394 |
+
|
395 |
gallery.select(update_selection, outputs=[prompt_in, selected_info, selected_index])
|
396 |
|
397 |
demo.launch(show_error=True)
|