Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -71,10 +71,10 @@ def swap_to_gallery(images):
|
|
71 |
def remove_back_to_files():
|
72 |
return gr.update(visible=False), gr.update(visible=False), gr.update(visible=True)
|
73 |
|
74 |
-
examples = [
|
75 |
-
|
76 |
-
|
77 |
-
]
|
78 |
|
79 |
css="""
|
80 |
#col-container {
|
@@ -201,13 +201,13 @@ with gr.Blocks(css=css) as demo:
|
|
201 |
remove_and_reupload.click(fn=remove_back_to_files, outputs=[uploaded_files, clear_button, files])
|
202 |
|
203 |
|
204 |
-
gr.Examples(
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
)
|
211 |
|
212 |
gr.on(
|
213 |
triggers=[run_button.click, prompt.submit],
|
|
|
71 |
def remove_back_to_files():
|
72 |
return gr.update(visible=False), gr.update(visible=False), gr.update(visible=True)
|
73 |
|
74 |
+
# examples = [
|
75 |
+
# ["high quality", ["example1.png"], 1.0, "", 1000, False, False, 1152, 896, 5.0, 30, "Regular"],
|
76 |
+
# ["capybara", ["example2.png"], 0.7, "", 1000, False, False, 1152, 896, 5.0, 30, "Style-Only"],
|
77 |
+
# ]
|
78 |
|
79 |
css="""
|
80 |
#col-container {
|
|
|
201 |
remove_and_reupload.click(fn=remove_back_to_files, outputs=[uploaded_files, clear_button, files])
|
202 |
|
203 |
|
204 |
+
# # gr.Examples(
|
205 |
+
# # examples=examples,
|
206 |
+
# # fn=predict,
|
207 |
+
# # inputs=[prompt, files, ip_adapter_scale, negative_prompt, seed, randomize_seed, center_crop, width, height, guidance_scale, num_inference_steps, mode],
|
208 |
+
# # outputs=[result, seed],
|
209 |
+
# # cache_examples="lazy"
|
210 |
+
# # )
|
211 |
|
212 |
gr.on(
|
213 |
triggers=[run_button.click, prompt.submit],
|