lisonallen commited on
Commit
8c6d7f4
·
1 Parent(s): 6ae21b8

Fix flagging_mode parameter in gradio Interface

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +6 -6
app.py CHANGED
@@ -267,7 +267,7 @@ def create_demo():
267
  "an astronaut riding a horse in space",
268
  "a fantasy castle on a floating island"
269
  ],
270
- allow_flagging=False,
271
  cache_examples=False
272
  )
273
 
 
267
  "an astronaut riding a horse in space",
268
  "a fantasy castle on a floating island"
269
  ],
270
+ flagging_mode="never", # 使用枚举值 'never' 而不是 False
271
  cache_examples=False
272
  )
273
 
requirements.txt CHANGED
@@ -1,8 +1,8 @@
1
- accelerate==0.15.0
2
  diffusers==0.10.2
3
- huggingface-hub==0.13.0
4
  torch==1.13.1
5
- transformers==4.25.1
6
- safetensors==0.3.1
7
- gradio==3.19.1
8
- Pillow==9.5.0
 
1
+ accelerate>=0.15.0
2
  diffusers==0.10.2
3
+ huggingface-hub>=0.13.0
4
  torch==1.13.1
5
+ transformers>=4.25.1
6
+ safetensors>=0.3.1
7
+ gradio>=3.19.1,<3.25.0
8
+ Pillow>=9.0.0,<10.0.0