Spaces:
Sleeping
Sleeping
Added another key
Browse files- streamlit_app.py +12 -6
streamlit_app.py
CHANGED
|
@@ -5,6 +5,7 @@ import tempfile
|
|
| 5 |
# Set environment variables for large uploads before importing streamlit
|
| 6 |
os.environ["STREAMLIT_SERVER_MAX_UPLOAD_SIZE"] = "1024"
|
| 7 |
os.environ["STREAMLIT_SERVER_MAX_MESSAGE_SIZE"] = "1024"
|
|
|
|
| 8 |
|
| 9 |
# typing imports removed
|
| 10 |
|
|
@@ -531,11 +532,12 @@ if uploaded is not None:
|
|
| 531 |
|
| 532 |
else:
|
| 533 |
st.info("Upload a .tif to begin.")
|
| 534 |
-
|
| 535 |
# Local version info
|
| 536 |
st.divider()
|
| 537 |
st.subheader("💻 Need to process files larger than 200MB?")
|
| 538 |
-
st.markdown(
|
|
|
|
| 539 |
**Download and run locally:**
|
| 540 |
|
| 541 |
1. **Download the code**: [GitHub Repository](https://github.com/pr28416/cell-detection)
|
|
@@ -543,10 +545,12 @@ else:
|
|
| 543 |
3. **Run locally**: `streamlit run streamlit_app.py`
|
| 544 |
|
| 545 |
✅ **Local version supports**: 1GB+ files, faster processing, debug images
|
| 546 |
-
"""
|
| 547 |
-
|
|
|
|
| 548 |
with st.expander("🛠️ Local Setup Instructions"):
|
| 549 |
-
st.code(
|
|
|
|
| 550 |
# Clone the repository
|
| 551 |
git clone https://github.com/pr28416/cell-detection.git
|
| 552 |
cd cell-detection
|
|
@@ -556,4 +560,6 @@ pip install -r requirements.txt
|
|
| 556 |
|
| 557 |
# Run the app locally (supports 1GB+ files)
|
| 558 |
streamlit run streamlit_app.py
|
| 559 |
-
""",
|
|
|
|
|
|
|
|
|
| 5 |
# Set environment variables for large uploads before importing streamlit
|
| 6 |
os.environ["STREAMLIT_SERVER_MAX_UPLOAD_SIZE"] = "1024"
|
| 7 |
os.environ["STREAMLIT_SERVER_MAX_MESSAGE_SIZE"] = "1024"
|
| 8 |
+
os.environ["maxUploadSize"] = "1024"
|
| 9 |
|
| 10 |
# typing imports removed
|
| 11 |
|
|
|
|
| 532 |
|
| 533 |
else:
|
| 534 |
st.info("Upload a .tif to begin.")
|
| 535 |
+
|
| 536 |
# Local version info
|
| 537 |
st.divider()
|
| 538 |
st.subheader("💻 Need to process files larger than 200MB?")
|
| 539 |
+
st.markdown(
|
| 540 |
+
"""
|
| 541 |
**Download and run locally:**
|
| 542 |
|
| 543 |
1. **Download the code**: [GitHub Repository](https://github.com/pr28416/cell-detection)
|
|
|
|
| 545 |
3. **Run locally**: `streamlit run streamlit_app.py`
|
| 546 |
|
| 547 |
✅ **Local version supports**: 1GB+ files, faster processing, debug images
|
| 548 |
+
"""
|
| 549 |
+
)
|
| 550 |
+
|
| 551 |
with st.expander("🛠️ Local Setup Instructions"):
|
| 552 |
+
st.code(
|
| 553 |
+
"""
|
| 554 |
# Clone the repository
|
| 555 |
git clone https://github.com/pr28416/cell-detection.git
|
| 556 |
cd cell-detection
|
|
|
|
| 560 |
|
| 561 |
# Run the app locally (supports 1GB+ files)
|
| 562 |
streamlit run streamlit_app.py
|
| 563 |
+
""",
|
| 564 |
+
language="bash",
|
| 565 |
+
)
|