Update app.py
Browse files
app.py
CHANGED
|
@@ -1,26 +1,3 @@
|
|
| 1 |
-
"""
|
| 2 |
-
Waste Intelligence API — Jakarta Pusat 2026
|
| 3 |
-
AI-Powered Predictive Waste Management System (CASE 2)
|
| 4 |
-
|
| 5 |
-
Team: Aeterna AI
|
| 6 |
-
Leader: Faril Putra Pratama
|
| 7 |
-
Institution: SMK Taruna Bangsa
|
| 8 |
-
|
| 9 |
-
Description:
|
| 10 |
-
This API predicts waste volume 1–30 days ahead for high-density operational zones
|
| 11 |
-
in Central Jakarta. It integrates historical generation patterns, weather forecasts,
|
| 12 |
-
and verified event calendars with spatial location mapping to enable proactive fleet
|
| 13 |
-
scheduling and resource optimization for Dinas Lingkungan Hidup (DLH).
|
| 14 |
-
|
| 15 |
-
Key Features:
|
| 16 |
-
- Zero-shot time-series forecasting using Amazon Chronos-T5
|
| 17 |
-
- Real-world data calibration (aligning AI output with operational baselines)
|
| 18 |
-
- Spatial-aware event impact mapping (e.g., JIExpo events → JIS/Kemayoran)
|
| 19 |
-
- Dynamic risk scoring based on location-specific capacity thresholds
|
| 20 |
-
- Adaptive granularity: daily & hourly hybrid forecasting
|
| 21 |
-
- Production-ready REST API with strict validation & <3s response time
|
| 22 |
-
"""
|
| 23 |
-
|
| 24 |
from fastapi import FastAPI, HTTPException, Query
|
| 25 |
from fastapi.middleware.cors import CORSMiddleware
|
| 26 |
from fastapi.concurrency import run_in_threadpool
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
from fastapi import FastAPI, HTTPException, Query
|
| 2 |
from fastapi.middleware.cors import CORSMiddleware
|
| 3 |
from fastapi.concurrency import run_in_threadpool
|