Spaces:
Running
Running
Let HF Space control Streamlit version (remove from requirements)
Browse filesListing streamlit in requirements.txt alongside sdk_version in README can
install a mismatched version, causing 'Cannot load Streamlit frontend code'.
- requirements.txt +4 -1
requirements.txt
CHANGED
|
@@ -1,3 +1,6 @@
|
|
| 1 |
-
streamlit
|
|
|
|
|
|
|
|
|
|
| 2 |
huggingface_hub>=0.25
|
| 3 |
requests>=2.31
|
|
|
|
| 1 |
+
# NOTE: streamlit itself is provided by the HF Space runtime via the
|
| 2 |
+
# `sdk_version` field in README.md — do NOT list it here, or pip may install a
|
| 3 |
+
# different version and cause a frontend/backend mismatch
|
| 4 |
+
# ("Cannot load Streamlit frontend code").
|
| 5 |
huggingface_hub>=0.25
|
| 6 |
requests>=2.31
|