Spaces:
Sleeping
Sleeping
Download solar_api/urls.py from Vedang2004/prediction_api: direct link, hf CLI and curl.
- Browser
- Download file 945 Bytes
-
https://huggingface.co/spaces/Vedang2004/prediction_api/resolve/main/solar_api/urls.py
- Command line
-
hf download hf://spaces/Vedang2004/prediction_api/solar_api/urls.py
-
curl -L -o urls.py https://huggingface.co/spaces/Vedang2004/prediction_api/resolve/main/solar_api/urls.py
945 Bytes
| from django.urls import path | |
| from .views.bill_optimization_view import BillOptimizationView | |
| from .views.bill_prediction_view import BillPredictionView | |
| from .views.chatbot_view import ( | |
| ChatbotAPIView, | |
| DeleteKnowledgeBaseAPIView, | |
| PDFIngestionAPIView, | |
| ) | |
| from .views.solar_gen_prediction_view import SolarGenerationPrediction | |
| urlpatterns = [ | |
| path('predict-production/', SolarGenerationPrediction.as_view(), name='solar-generation-predict'), | |
| path('predict-bill/', BillPredictionView.as_view(), name='bill-prediction'), | |
| path('solar/bill-optimization-slab/', BillOptimizationView.as_view(), name='bill-optimization-slab'), | |
| path('chatbot/ask/', ChatbotAPIView.as_view(), name='chatbot-ask'), | |
| path('chatbot/ingest-pdf/', PDFIngestionAPIView.as_view(), name='chatbot-ingest-pdf'), | |
| path('chatbot/delete-knowledge-base/', DeleteKnowledgeBaseAPIView.as_view(), name='chatbot-delete-knowledge-base'), | |
| ] |