Spaces:
Sleeping
Sleeping
Fix: Readme
Browse files
README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
| 1 |
-
```
|
| 2 |
---
|
| 3 |
title: AgriPredict
|
| 4 |
emoji: πΎ
|
|
|
|
|
|
|
| 5 |
sdk: streamlit
|
|
|
|
| 6 |
app_file: streamlit_app.py
|
| 7 |
pinned: false
|
| 8 |
---
|
|
@@ -17,7 +19,6 @@ This version focuses on better structure, maintainability, and performance.
|
|
| 17 |
## π Project Structure
|
| 18 |
|
| 19 |
```
|
| 20 |
-
|
| 21 |
src/agri_predict/
|
| 22 |
β
|
| 23 |
βββ config.py # Environment variables, MongoDB client setup
|
|
@@ -30,8 +31,7 @@ src/agri_predict/
|
|
| 30 |
|
| 31 |
streamlit_app.py # Streamlit UI entrypoint
|
| 32 |
requirements.txt # Python dependencies
|
| 33 |
-
|
| 34 |
-
````
|
| 35 |
|
| 36 |
---
|
| 37 |
|
|
@@ -42,7 +42,7 @@ requirements.txt # Python dependencies
|
|
| 42 |
```bash
|
| 43 |
python -m venv .venv
|
| 44 |
source .venv/bin/activate
|
| 45 |
-
```
|
| 46 |
|
| 47 |
### 2. Install dependencies:
|
| 48 |
|
|
@@ -68,30 +68,13 @@ streamlit run streamlit_app.py
|
|
| 68 |
|
| 69 |
## π Deploy on Hugging Face Spaces
|
| 70 |
|
| 71 |
-
This README already includes the required HF metadata block at the top
|
| 72 |
-
|
| 73 |
-
```md
|
| 74 |
-
---
|
| 75 |
-
title: AgriPredict
|
| 76 |
-
emoji: πΎ
|
| 77 |
-
sdk: streamlit
|
| 78 |
-
app_file: streamlit_app.py
|
| 79 |
-
pinned: false
|
| 80 |
-
---
|
| 81 |
-
```
|
| 82 |
-
|
| 83 |
-
Hugging Face will automatically run:
|
| 84 |
|
| 85 |
```
|
| 86 |
streamlit run streamlit_app.py
|
| 87 |
```
|
| 88 |
|
| 89 |
-
No
|
| 90 |
-
|
| 91 |
-
---
|
| 92 |
-
|
| 93 |
-
## π¬ Contact
|
| 94 |
-
|
| 95 |
-
If you face any issues deploying to Hugging Face, reach out or open an issue in the repository.
|
| 96 |
|
| 97 |
-
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
title: AgriPredict
|
| 3 |
emoji: πΎ
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: yellow
|
| 6 |
sdk: streamlit
|
| 7 |
+
sdk_version: "1.31.0"
|
| 8 |
app_file: streamlit_app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
|
|
|
| 19 |
## π Project Structure
|
| 20 |
|
| 21 |
```
|
|
|
|
| 22 |
src/agri_predict/
|
| 23 |
β
|
| 24 |
βββ config.py # Environment variables, MongoDB client setup
|
|
|
|
| 31 |
|
| 32 |
streamlit_app.py # Streamlit UI entrypoint
|
| 33 |
requirements.txt # Python dependencies
|
| 34 |
+
```
|
|
|
|
| 35 |
|
| 36 |
---
|
| 37 |
|
|
|
|
| 42 |
```bash
|
| 43 |
python -m venv .venv
|
| 44 |
source .venv/bin/activate
|
| 45 |
+
```
|
| 46 |
|
| 47 |
### 2. Install dependencies:
|
| 48 |
|
|
|
|
| 68 |
|
| 69 |
## π Deploy on Hugging Face Spaces
|
| 70 |
|
| 71 |
+
This README already includes the required HF metadata block at the top.
|
| 72 |
+
Hugging Face Spaces will automatically run:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
|
| 74 |
```
|
| 75 |
streamlit run streamlit_app.py
|
| 76 |
```
|
| 77 |
|
| 78 |
+
No additional configuration is needed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
|
| 80 |
+
---
|