TianxingWu commited on
Commit
13b14ac
1 Parent(s): ad26208

keep cache for fast building

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -120,9 +120,9 @@ examples = [
120
  # os.system(f"bash download_bashscripts/4-MajicMix.sh")
121
  # os.system(f"bash download_bashscripts/5-RealisticVision.sh")
122
 
123
- # clean Gradio cache
124
- print(f"### Cleaning cached examples ...")
125
- os.system(f"rm -rf gradio_cached_examples/")
126
 
127
 
128
  class AnimateController:
@@ -442,7 +442,7 @@ def ui():
442
  width_slider = gr.Slider( label="Width", value=512, minimum=256, maximum=1024, step=64 )
443
  height_slider = gr.Slider( label="Height", value=512, minimum=256, maximum=1024, step=64 )
444
  with gr.Row():
445
- seed_textbox = gr.Textbox( label="Seed", value=1566149281915957)
446
  seed_button = gr.Button(value="\U0001F3B2", elem_classes="toolbutton")
447
  seed_button.click(fn=lambda: gr.Textbox.update(value=random.randint(1, 1e16)), inputs=[], outputs=[seed_textbox])
448
  with gr.Row():
 
120
  # os.system(f"bash download_bashscripts/4-MajicMix.sh")
121
  # os.system(f"bash download_bashscripts/5-RealisticVision.sh")
122
 
123
+ # # clean Gradio cache
124
+ # print(f"### Cleaning cached examples ...")
125
+ # os.system(f"rm -rf gradio_cached_examples/")
126
 
127
 
128
  class AnimateController:
 
442
  width_slider = gr.Slider( label="Width", value=512, minimum=256, maximum=1024, step=64 )
443
  height_slider = gr.Slider( label="Height", value=512, minimum=256, maximum=1024, step=64 )
444
  with gr.Row():
445
+ seed_textbox = gr.Textbox( label="Seed", value=2005563494988190)
446
  seed_button = gr.Button(value="\U0001F3B2", elem_classes="toolbutton")
447
  seed_button.click(fn=lambda: gr.Textbox.update(value=random.randint(1, 1e16)), inputs=[], outputs=[seed_textbox])
448
  with gr.Row():