Spaces:
Sleeping
Sleeping
sab
commited on
Commit
·
f827932
1
Parent(s):
557e550
README.md
Browse files
README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
---
|
2 |
title: SnapClean
|
3 |
-
emoji:
|
4 |
colorFrom: indigo
|
5 |
-
colorTo:
|
6 |
sdk: gradio
|
7 |
-
sdk_version:
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
|
|
1 |
---
|
2 |
title: SnapClean
|
3 |
+
emoji: 🧽🫧
|
4 |
colorFrom: indigo
|
5 |
+
colorTo: orange
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 4.42.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
app.py
CHANGED
@@ -98,16 +98,6 @@ with gr.Blocks() as demo:
|
|
98 |
layers=False,
|
99 |
brush=gr.Brush(colors=["#FFFFFF"], color_mode="fixed")
|
100 |
)
|
101 |
-
|
102 |
-
prompt = gr.Textbox(lines=2, placeholder="Enter prompt here...")
|
103 |
-
negative_prompt = gr.Textbox(lines=2, placeholder="Enter negative_prompt here...")
|
104 |
-
controlnet_conditioning_scale = gr.Slider(minimum=0, step=0.01, maximum=1, value=0.9,
|
105 |
-
label="controlnet_conditioning_scale")
|
106 |
-
guidance_scale = gr.Slider(minimum=1, step=0.5, maximum=10, value=3.5, label="Image to generate")
|
107 |
-
seed = gr.Slider(minimum=0, step=1, maximum=10000000, value=124, label="Seed Value")
|
108 |
-
num_inference_steps = gr.Slider(minimum=1, step=1, maximum=30, value=24, label="num_inference_steps")
|
109 |
-
true_guidance_scale = gr.Slider(minimum=1, step=1, maximum=10, value=3.5, label="true_guidance_scale")
|
110 |
-
|
111 |
submit_button_component = gr.Button(
|
112 |
value='Submit', variant='primary', scale=0
|
113 |
)
|
@@ -118,20 +108,8 @@ with gr.Blocks() as demo:
|
|
118 |
|
119 |
submit_button_component.click(
|
120 |
fn=process,
|
121 |
-
inputs=[
|
122 |
-
|
123 |
-
prompt,
|
124 |
-
negative_prompt,
|
125 |
-
controlnet_conditioning_scale,
|
126 |
-
guidance_scale,
|
127 |
-
seed,
|
128 |
-
num_inference_steps,
|
129 |
-
true_guidance_scale
|
130 |
-
|
131 |
-
],
|
132 |
-
outputs=[
|
133 |
-
output_image_component,
|
134 |
-
]
|
135 |
)
|
136 |
|
137 |
demo.launch(debug=False, show_error=True, share=True)
|
|
|
98 |
layers=False,
|
99 |
brush=gr.Brush(colors=["#FFFFFF"], color_mode="fixed")
|
100 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
submit_button_component = gr.Button(
|
102 |
value='Submit', variant='primary', scale=0
|
103 |
)
|
|
|
108 |
|
109 |
submit_button_component.click(
|
110 |
fn=process,
|
111 |
+
inputs=[input_image_editor_component],
|
112 |
+
outputs=[output_image_component]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
)
|
114 |
|
115 |
demo.launch(debug=False, show_error=True, share=True)
|