Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -171,18 +171,7 @@ with gr.Blocks(title="Smart Garbage Patrol") as demo:
|
|
| 171 |
)
|
| 172 |
|
| 173 |
gr.Markdown("""
|
| 174 |
-
|
| 175 |
-
- Place your trained YOLOv8 model as `best.pt` in the app directory
|
| 176 |
-
- The system needs webcam access to function
|
| 177 |
-
- Alert cooldown: 3 seconds between detections
|
| 178 |
-
- Press **Reset** to clear the alert counter
|
| 179 |
-
|
| 180 |
-
### π Deployment on Hugging Face Spaces:
|
| 181 |
-
1. Create a new Space with **Gradio SDK**
|
| 182 |
-
2. Upload this script as `app.py`
|
| 183 |
-
3. Upload your model file as `best.pt`
|
| 184 |
-
4. Add `requirements.txt` with dependencies
|
| 185 |
-
""")
|
| 186 |
|
| 187 |
if __name__ == "__main__":
|
| 188 |
demo.launch()
|
|
|
|
| 171 |
)
|
| 172 |
|
| 173 |
gr.Markdown("""
|
| 174 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 175 |
|
| 176 |
if __name__ == "__main__":
|
| 177 |
demo.launch()
|