Spaces:
Build error
Build error
Commit ·
e198588
1
Parent(s): 3abf194
🔧 修復 Gradio 4.44.0 flagging_mode 參數錯誤
Browse files- 移除 gr.Interface 中不支援的 flagging_mode 參數
- 升級 Gradio 到 4.44.1 (修復版本)
- 保持 pydantic==2.10.6 穩定性
- app.py +1 -2
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -445,8 +445,7 @@ demo = gr.Interface(
|
|
| 445 |
|
| 446 |
**支援詞彙:** again, all, apple, bad, bathroom, beautiful, bird, black, blue, book, bored, boy, brother, brown, but, computer, cousin, dance, day, deaf, doctor, dog, draw, drink, eat, english, family, father, fine, finish, fish, forget, friend, girl
|
| 447 |
""",
|
| 448 |
-
examples=[]
|
| 449 |
-
flagging_mode="never"
|
| 450 |
)
|
| 451 |
|
| 452 |
if __name__ == "__main__":
|
|
|
|
| 445 |
|
| 446 |
**支援詞彙:** again, all, apple, bad, bathroom, beautiful, bird, black, blue, book, bored, boy, brother, brown, but, computer, cousin, dance, day, deaf, doctor, dog, draw, drink, eat, english, family, father, fine, finish, fish, forget, friend, girl
|
| 447 |
""",
|
| 448 |
+
examples=[]
|
|
|
|
| 449 |
)
|
| 450 |
|
| 451 |
if __name__ == "__main__":
|
requirements.txt
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
gradio==4.44.0
|
| 2 |
torch>=2.0.0
|
| 3 |
torchvision>=0.15.0
|
| 4 |
opencv-python>=4.8.0
|
|
@@ -6,4 +5,5 @@ mediapipe>=0.10.0
|
|
| 6 |
numpy>=1.24.0
|
| 7 |
Pillow>=9.5.0
|
| 8 |
scipy>=1.10.0
|
|
|
|
| 9 |
pydantic==2.10.6
|
|
|
|
|
|
|
| 1 |
torch>=2.0.0
|
| 2 |
torchvision>=0.15.0
|
| 3 |
opencv-python>=4.8.0
|
|
|
|
| 5 |
numpy>=1.24.0
|
| 6 |
Pillow>=9.5.0
|
| 7 |
scipy>=1.10.0
|
| 8 |
+
gradio==4.44.1
|
| 9 |
pydantic==2.10.6
|