Spaces:
Sleeping
Sleeping
固定 gradio 版本為 6.20.0,避免 HF Space 建置抓到不相容新版
Browse filesrequirements.txt 原本寫 gradio>=6.0(無上限),這次部署到 HF Space
全新建置時 pip 抓到 6.26.0,但本機開發與測試一直是 6.20.0。落差
6 個小版本,導致畫面明顯跑版——assets/app.css 裡大量針對 Gradio
內部自動產生的 svelte class 寫了 specificity 補丁,這類 class 是
每次 Gradio 建置產生的,版本一換結構就可能跟著變,樣式選擇器對
不上,畫面掉回接近預設的 Gradio 樣子。
鎖定確切版本,避免未來重新建置又抓到未測試過的新版。
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- requirements.txt +1 -1
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
gradio
|
| 2 |
numpy
|
| 3 |
pandas
|
| 4 |
scipy
|
|
|
|
| 1 |
+
gradio==6.20.0
|
| 2 |
numpy
|
| 3 |
pandas
|
| 4 |
scipy
|