jiuface commited on
Commit
9ed6403
1 Parent(s): 21fd598

update hugging face hub

Browse files
Files changed (2) hide show
  1. app.py +4 -2
  2. requirements.txt +2 -1
app.py CHANGED
@@ -8,6 +8,8 @@ import spaces
8
  import torch
9
  from PIL import Image
10
  from diffusers import FluxInpaintPipeline
 
 
11
 
12
  MARKDOWN = """
13
  # FLUX.1 Inpainting 🔥
@@ -162,7 +164,7 @@ with gr.Blocks() as demo:
162
  submit_button_component = gr.Button(
163
  value='Submit', variant='primary', scale=0)
164
 
165
- with gr.Accordion("Advanced Settings", open=False):
166
  seed_slicer_component = gr.Slider(
167
  label="Seed",
168
  minimum=0,
@@ -218,7 +220,7 @@ with gr.Blocks() as demo:
218
  output_mask_component
219
  ],
220
  run_on_click=True,
221
- cache_examples=True
222
  )
223
 
224
  submit_button_component.click(
 
8
  import torch
9
  from PIL import Image
10
  from diffusers import FluxInpaintPipeline
11
+ from huggingface_hub import login
12
+ import os
13
 
14
  MARKDOWN = """
15
  # FLUX.1 Inpainting 🔥
 
164
  submit_button_component = gr.Button(
165
  value='Submit', variant='primary', scale=0)
166
 
167
+ with gr.Accordion("Advanced Settings", open=True):
168
  seed_slicer_component = gr.Slider(
169
  label="Seed",
170
  minimum=0,
 
220
  output_mask_component
221
  ],
222
  run_on_click=True,
223
+ cache_examples=False
224
  )
225
 
226
  submit_button_component.click(
requirements.txt CHANGED
@@ -3,4 +3,5 @@ spaces
3
  accelerate
4
  transformers==4.42.4
5
  sentencepiece
6
- git+https://github.com/Gothos/diffusers.git@flux-inpaint
 
 
3
  accelerate
4
  transformers==4.42.4
5
  sentencepiece
6
+ git+https://github.com/Gothos/diffusers.git@flux-inpaint
7
+ huggingface_hub