Spaces:
Sleeping
Sleeping
Commit ·
8c6d7f4
1
Parent(s): 6ae21b8
Fix flagging_mode parameter in gradio Interface
Browse files- app.py +1 -1
- 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 |
-
|
| 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=
|
| 2 |
diffusers==0.10.2
|
| 3 |
-
huggingface-hub=
|
| 4 |
torch==1.13.1
|
| 5 |
-
transformers=
|
| 6 |
-
safetensors=
|
| 7 |
-
gradio=
|
| 8 |
-
Pillow=
|
|
|
|
| 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
|