Pclanglais commited on
Commit
57b4941
1 Parent(s): 204d0c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -96,13 +96,6 @@ def modify_image(image, brightness, contrast):
96
  with gr.Blocks(gr.themes.Soft()) as demo:
97
  with gr.Row():
98
  image_output = gr.Image(label="Generated Image")
99
-
100
- with gr.Row():
101
- with gr.Accordion(label="Configuration Options"):
102
- prompt_input = gr.Textbox(label="Prompt", placeholder="Self-portrait oil painting, a beautiful cyborg with golden hair, 8k")
103
- steps_input = gr.Slider(minimum=1, maximum=10, label="Inference Steps", value=4)
104
- guidance_input = gr.Slider(minimum=0, maximum=2, label="Guidance Scale", value=1)
105
- generate_button = gr.Button("Generate Image")
106
  with gr.Row():
107
  with gr.Accordion(label="Wiki-Mouse Image Generation"):
108
  adapter_prompt_input = gr.Textbox(label="Prompt", placeholder="papercut, a cute fox")
@@ -110,7 +103,7 @@ with gr.Blocks(gr.themes.Soft()) as demo:
110
  adapter_guidance_input = gr.Slider(minimum=0, maximum=2, label="Guidance Scale", value=1)
111
  adapter_generate_button = gr.Button("Generate Image with Adapter")
112
 
113
- generate_button.click(
114
  generate_image,
115
  inputs=[prompt_input, steps_input, guidance_input],
116
  outputs=image_output
 
96
  with gr.Blocks(gr.themes.Soft()) as demo:
97
  with gr.Row():
98
  image_output = gr.Image(label="Generated Image")
 
 
 
 
 
 
 
99
  with gr.Row():
100
  with gr.Accordion(label="Wiki-Mouse Image Generation"):
101
  adapter_prompt_input = gr.Textbox(label="Prompt", placeholder="papercut, a cute fox")
 
103
  adapter_guidance_input = gr.Slider(minimum=0, maximum=2, label="Guidance Scale", value=1)
104
  adapter_generate_button = gr.Button("Generate Image with Adapter")
105
 
106
+ adapter_generate_button.click(
107
  generate_image,
108
  inputs=[prompt_input, steps_input, guidance_input],
109
  outputs=image_output