animrods commited on
Commit
b5c8a76
·
verified ·
1 Parent(s): 4d14673

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -55,6 +55,9 @@ def predict(prompt, upload_images, ip_adapter_scale=0.5, negative_prompt="", see
55
  def swap_to_gallery(images):
56
  return gr.update(value=images, visible=True), gr.update(visible=True), gr.update(visible=False)
57
 
 
 
 
58
  examples = [
59
  ["high quality", "example1.png", 1.0, "", 1000, False, False, 1152, 896],
60
  ["capybara", "example2.png", 0.7, "", 1000, False, False, 1152, 896],
 
55
  def swap_to_gallery(images):
56
  return gr.update(value=images, visible=True), gr.update(visible=True), gr.update(visible=False)
57
 
58
+ def remove_back_to_files():
59
+ return gr.update(visible=False), gr.update(visible=False), gr.update(visible=True)
60
+
61
  examples = [
62
  ["high quality", "example1.png", 1.0, "", 1000, False, False, 1152, 896],
63
  ["capybara", "example2.png", 0.7, "", 1000, False, False, 1152, 896],