AjaykumarPilla commited on
Commit
c91e3be
·
verified ·
1 Parent(s): b921b91

Delete README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -42
README.md DELETED
@@ -1,42 +0,0 @@
1
- ---
2
- title: Test Space
3
- emoji: 🚀
4
- colorFrom: green
5
- colorTo: yellow
6
- sdk: docker
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 an interactive Chart.js 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
- - Includes logging for debugging and rule-based fallback insights if the model fails.
36
-
37
- ## Troubleshooting
38
- - **AI Insights Unavailable**: Check Space logs for errors (e.g., memory issues, network failures). Restart the Space or reduce `max_new_tokens` in `model.py`.
39
- - **Slow Inference**: CPU inference may take ~5-10 seconds. Consider switching to `t5-small` for faster performance.
40
- - **Dependency Errors**: Ensure all dependencies in `requirements.txt` are installed correctly.
41
-
42
- For questions, refer to [Streamlit documentation](https://docs.streamlit.io) or [Hugging Face forums](https://discuss.huggingface.co).