Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,10 @@ def generate_image(prompt: str,negative_prompt:str , inference_steps: int = 25,
|
|
49 |
images = images.reshape((num_samples,) + images.shape[-3:])
|
50 |
images = pipeline.numpy_to_pil(images)
|
51 |
return images[0]
|
52 |
-
examples = [
|
|
|
|
|
|
|
53 |
css = """
|
54 |
.gradio-container {
|
55 |
font-family: 'IBM Plex Sans', sans-serif;
|
@@ -296,16 +299,6 @@ with block:
|
|
296 |
prompt_input.submit(generate_image, inputs=[prompt_input, negative, inf_steps_input,seed_input,guidance_scale], outputs=[gallery], postprocess=False)
|
297 |
btn.click(generate_image, inputs=[prompt_input, negative, inf_steps_input,seed_input,guidance_scale], outputs=[gallery], postprocess=False)
|
298 |
|
299 |
-
#advanced_button.click(
|
300 |
-
# None,
|
301 |
-
# [],
|
302 |
-
# prompt_input,
|
303 |
-
# _js="""
|
304 |
-
# () => {
|
305 |
-
# const options = document.querySelector("body > gradio-app").querySelector("#advanced-options");
|
306 |
-
# options.style.display = ["none", ""].includes(options.style.display) ? "flex" : "none";
|
307 |
-
# }""",
|
308 |
-
#)
|
309 |
share_button.click(
|
310 |
None,
|
311 |
[],
|
|
|
49 |
images = images.reshape((num_samples,) + images.shape[-3:])
|
50 |
images = pipeline.numpy_to_pil(images)
|
51 |
return images[0]
|
52 |
+
examples = [
|
53 |
+
["A watercolor painting of a bird"],
|
54 |
+
["A watercolor painting of an otter"]
|
55 |
+
]
|
56 |
css = """
|
57 |
.gradio-container {
|
58 |
font-family: 'IBM Plex Sans', sans-serif;
|
|
|
299 |
prompt_input.submit(generate_image, inputs=[prompt_input, negative, inf_steps_input,seed_input,guidance_scale], outputs=[gallery], postprocess=False)
|
300 |
btn.click(generate_image, inputs=[prompt_input, negative, inf_steps_input,seed_input,guidance_scale], outputs=[gallery], postprocess=False)
|
301 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
302 |
share_button.click(
|
303 |
None,
|
304 |
[],
|