Spaces:
Sleeping
Sleeping
Sync from GitHub via hub-sync
Browse files- .streamlit/config.toml +1 -1
- Dockerfile +1 -1
- README.md +1 -0
- deployment/Dockerfile +1 -1
- deployment/start_space.sh +4 -4
.streamlit/config.toml
CHANGED
|
@@ -7,7 +7,7 @@ font = "sans serif"
|
|
| 7 |
|
| 8 |
[server]
|
| 9 |
maxUploadSize = 10
|
| 10 |
-
enableCORS =
|
| 11 |
enableXsrfProtection = true
|
| 12 |
|
| 13 |
[browser]
|
|
|
|
| 7 |
|
| 8 |
[server]
|
| 9 |
maxUploadSize = 10
|
| 10 |
+
enableCORS = true
|
| 11 |
enableXsrfProtection = true
|
| 12 |
|
| 13 |
[browser]
|
Dockerfile
CHANGED
|
@@ -42,7 +42,7 @@ RUN chmod +x deployment/start_space.sh \
|
|
| 42 |
|
| 43 |
EXPOSE 7860
|
| 44 |
|
| 45 |
-
HEALTHCHECK --interval=30s --timeout=10s --start-period=
|
| 46 |
CMD curl -f http://localhost:7860/_stcore/health || exit 1
|
| 47 |
|
| 48 |
CMD ["deployment/start_space.sh"]
|
|
|
|
| 42 |
|
| 43 |
EXPOSE 7860
|
| 44 |
|
| 45 |
+
HEALTHCHECK --interval=30s --timeout=10s --start-period=300s --retries=5 \
|
| 46 |
CMD curl -f http://localhost:7860/_stcore/health || exit 1
|
| 47 |
|
| 48 |
CMD ["deployment/start_space.sh"]
|
README.md
CHANGED
|
@@ -5,6 +5,7 @@ colorFrom: blue
|
|
| 5 |
colorTo: indigo
|
| 6 |
sdk: docker
|
| 7 |
app_port: 7860
|
|
|
|
| 8 |
pinned: false
|
| 9 |
short_description: OSS vs frontier AI assistants side-by-side
|
| 10 |
---
|
|
|
|
| 5 |
colorTo: indigo
|
| 6 |
sdk: docker
|
| 7 |
app_port: 7860
|
| 8 |
+
startup_duration_timeout: 45m
|
| 9 |
pinned: false
|
| 10 |
short_description: OSS vs frontier AI assistants side-by-side
|
| 11 |
---
|
deployment/Dockerfile
CHANGED
|
@@ -42,7 +42,7 @@ RUN chmod +x deployment/start_space.sh \
|
|
| 42 |
|
| 43 |
EXPOSE 7860
|
| 44 |
|
| 45 |
-
HEALTHCHECK --interval=30s --timeout=10s --start-period=
|
| 46 |
CMD curl -f http://localhost:7860/_stcore/health || exit 1
|
| 47 |
|
| 48 |
CMD ["deployment/start_space.sh"]
|
|
|
|
| 42 |
|
| 43 |
EXPOSE 7860
|
| 44 |
|
| 45 |
+
HEALTHCHECK --interval=30s --timeout=10s --start-period=300s --retries=5 \
|
| 46 |
CMD curl -f http://localhost:7860/_stcore/health || exit 1
|
| 47 |
|
| 48 |
CMD ["deployment/start_space.sh"]
|
deployment/start_space.sh
CHANGED
|
@@ -19,15 +19,15 @@ for _ in $(seq 1 60); do
|
|
| 19 |
sleep 1
|
| 20 |
done
|
| 21 |
|
| 22 |
-
echo "
|
| 23 |
-
ollama pull "${OSS_MODEL}"
|
| 24 |
-
|
| 25 |
-
echo "Starting Streamlit app..."
|
| 26 |
streamlit run apps/comparison_app.py \
|
| 27 |
--server.port="${STREAMLIT_SERVER_PORT:-7860}" \
|
| 28 |
--server.address="${STREAMLIT_SERVER_ADDRESS:-0.0.0.0}" \
|
| 29 |
--server.headless=true &
|
| 30 |
STREAMLIT_PID="$!"
|
| 31 |
|
|
|
|
|
|
|
|
|
|
| 32 |
trap 'kill "${STREAMLIT_PID}" "${OLLAMA_PID}" 2>/dev/null || true' INT TERM
|
| 33 |
wait "${STREAMLIT_PID}"
|
|
|
|
| 19 |
sleep 1
|
| 20 |
done
|
| 21 |
|
| 22 |
+
echo "Starting Streamlit app (model pull runs in background)..."
|
|
|
|
|
|
|
|
|
|
| 23 |
streamlit run apps/comparison_app.py \
|
| 24 |
--server.port="${STREAMLIT_SERVER_PORT:-7860}" \
|
| 25 |
--server.address="${STREAMLIT_SERVER_ADDRESS:-0.0.0.0}" \
|
| 26 |
--server.headless=true &
|
| 27 |
STREAMLIT_PID="$!"
|
| 28 |
|
| 29 |
+
echo "Pulling OSS model in background: ${OSS_MODEL}"
|
| 30 |
+
ollama pull "${OSS_MODEL}" &
|
| 31 |
+
|
| 32 |
trap 'kill "${STREAMLIT_PID}" "${OLLAMA_PID}" 2>/dev/null || true' INT TERM
|
| 33 |
wait "${STREAMLIT_PID}"
|