Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title: Delay
|
| 3 |
emoji: π
|
| 4 |
colorFrom: red
|
| 5 |
colorTo: red
|
|
@@ -7,13 +7,30 @@ sdk: docker
|
|
| 7 |
app_port: 8501
|
| 8 |
tags:
|
| 9 |
- streamlit
|
|
|
|
|
|
|
| 10 |
pinned: false
|
| 11 |
-
short_description: Streamlit
|
| 12 |
---
|
| 13 |
|
| 14 |
-
#
|
| 15 |
|
| 16 |
-
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Delay Predictor
|
| 3 |
emoji: π
|
| 4 |
colorFrom: red
|
| 5 |
colorTo: red
|
|
|
|
| 7 |
app_port: 8501
|
| 8 |
tags:
|
| 9 |
- streamlit
|
| 10 |
+
- distilbart
|
| 11 |
+
- project-delay
|
| 12 |
pinned: false
|
| 13 |
+
short_description: Streamlit app for project delay prediction using DistilBART
|
| 14 |
---
|
| 15 |
|
| 16 |
+
# Project Delay Predictor
|
| 17 |
|
| 18 |
+
This Streamlit app predicts project delays based on task data, workforce, and weather conditions, using DistilBART (`sshleifer/distilbart-cnn-6-6`) for AI-generated insights. It runs on the free CPU tier of Hugging Face Spaces, generating delay probabilities, insights, and a downloadable PDF report, with integration to Salesforce.
|
| 19 |
|
| 20 |
+
## Features
|
| 21 |
+
- Input project details via a Streamlit interface.
|
| 22 |
+
- Predict delay probability and generate AI insights.
|
| 23 |
+
- Visualize delay risk with a heatmap.
|
| 24 |
+
- Save results and PDF to Salesforce.
|
| 25 |
+
- Download a PDF report.
|
| 26 |
+
|
| 27 |
+
## Setup
|
| 28 |
+
1. Ensure Salesforce credentials are set as environment variables (`SF_USERNAME`, `SF_PASSWORD`, `SF_SECURITY_TOKEN`, `SF_INSTANCE_URL`).
|
| 29 |
+
2. Deploy on a Hugging Face Space with the free CPU tier.
|
| 30 |
+
3. Access the app at the Space's URL.
|
| 31 |
+
|
| 32 |
+
## Notes
|
| 33 |
+
- Uses DistilBART for CPU-friendly inference (~5-10 seconds per prediction).
|
| 34 |
+
- Secure model loading with `safetensors` and `trust_remote_code=False`.
|
| 35 |
+
|
| 36 |
+
For questions, refer to [Streamlit documentation](https://docs.streamlit.io) or [Hugging Face forums](https://discuss.huggingface.co).
|