Spaces:
Sleeping
Sleeping
Commit
·
bb6b4a3
1
Parent(s):
3b0f265
req
Browse files
app.py
CHANGED
@@ -507,6 +507,10 @@ class SystemStatusResponse(BaseModel):
|
|
507 |
data_loaded: bool
|
508 |
available_crops: List[str]
|
509 |
|
|
|
|
|
|
|
|
|
510 |
# Initialize advisor with error handling
|
511 |
logger.info("🚀 Initializing Agricultural Advisor...")
|
512 |
try:
|
@@ -571,15 +575,15 @@ async def root():
|
|
571 |
<div class="example">
|
572 |
<strong>Example Request:</strong>
|
573 |
<pre>{
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
}</pre>
|
583 |
</div>
|
584 |
</div>
|
585 |
|
|
|
507 |
data_loaded: bool
|
508 |
available_crops: List[str]
|
509 |
|
510 |
+
model_config = {
|
511 |
+
"protected_namespaces": ()
|
512 |
+
}
|
513 |
+
|
514 |
# Initialize advisor with error handling
|
515 |
logger.info("🚀 Initializing Agricultural Advisor...")
|
516 |
try:
|
|
|
575 |
<div class="example">
|
576 |
<strong>Example Request:</strong>
|
577 |
<pre>{
|
578 |
+
"crop": "rice",
|
579 |
+
"N": 80,
|
580 |
+
"P": 40,
|
581 |
+
"K": 67,
|
582 |
+
"temperature": 25,
|
583 |
+
"humidity": 60,
|
584 |
+
"pH": 7.0,
|
585 |
+
"rainfall": 200
|
586 |
+
}</pre>
|
587 |
</div>
|
588 |
</div>
|
589 |
|