Spaces:
Sleeping
Sleeping
Commit ·
5ea48c5
1
Parent(s): 8e09a62
Update Groq API key
Browse files- app.py +1 -1
- llm_analysis.py +2 -2
app.py
CHANGED
|
@@ -303,7 +303,7 @@ def run_llm_analysis(metric: str, stress_context: dict, indices_data: dict) -> d
|
|
| 303 |
try:
|
| 304 |
from groq import Groq
|
| 305 |
|
| 306 |
-
GROQ_API_KEY = os.environ.get("GROQ_API_KEY", "
|
| 307 |
GROQ_MODEL = "llama-3.3-70b-versatile"
|
| 308 |
|
| 309 |
client = Groq(api_key=GROQ_API_KEY)
|
|
|
|
| 303 |
try:
|
| 304 |
from groq import Groq
|
| 305 |
|
| 306 |
+
GROQ_API_KEY = os.environ.get("GROQ_API_KEY", "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")
|
| 307 |
GROQ_MODEL = "llama-3.3-70b-versatile"
|
| 308 |
|
| 309 |
client = Groq(api_key=GROQ_API_KEY)
|
llm_analysis.py
CHANGED
|
@@ -16,7 +16,7 @@ from typing import Dict, Any, List, Optional
|
|
| 16 |
# GROQ API CONFIGURATION
|
| 17 |
# ============================================================================
|
| 18 |
|
| 19 |
-
GROQ_API_KEY = os.environ.get("GROQ_API_KEY", "
|
| 20 |
GROQ_MODEL = "llama-3.3-70b-versatile"
|
| 21 |
|
| 22 |
|
|
@@ -245,7 +245,7 @@ You MUST respond with a valid JSON object (no markdown, no code blocks) with EXA
|
|
| 245 |
"level": "Low" or "Moderate" or "High",
|
| 246 |
"analysis": "Analyse mainly SFI patterns,spatial and temporal and variation,then check all other information along with the context given to give four words,not necessarily full sentences,but capture the sense which are very impactful,very simple to understand about the current soil fertility of the overall field"
|
| 247 |
},
|
| 248 |
-
"Pest
|
| 249 |
"level": "Low" or "Moderate" or "High",
|
| 250 |
"analysis": "Analyse field patterns,temporal and spatial health variations very meticulously,catch the pattern and use the indices as additional confirmation to give accurate pest risk diseases and give 4 words not necessarily connected sentences,but capture the sense which are very impactful,very simple to understand about current pest risk or its spreading pattern"
|
| 251 |
},
|
|
|
|
| 16 |
# GROQ API CONFIGURATION
|
| 17 |
# ============================================================================
|
| 18 |
|
| 19 |
+
GROQ_API_KEY = os.environ.get("GROQ_API_KEY", "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")
|
| 20 |
GROQ_MODEL = "llama-3.3-70b-versatile"
|
| 21 |
|
| 22 |
|
|
|
|
| 245 |
"level": "Low" or "Moderate" or "High",
|
| 246 |
"analysis": "Analyse mainly SFI patterns,spatial and temporal and variation,then check all other information along with the context given to give four words,not necessarily full sentences,but capture the sense which are very impactful,very simple to understand about the current soil fertility of the overall field"
|
| 247 |
},
|
| 248 |
+
"Pest Risk": {
|
| 249 |
"level": "Low" or "Moderate" or "High",
|
| 250 |
"analysis": "Analyse field patterns,temporal and spatial health variations very meticulously,catch the pattern and use the indices as additional confirmation to give accurate pest risk diseases and give 4 words not necessarily connected sentences,but capture the sense which are very impactful,very simple to understand about current pest risk or its spreading pattern"
|
| 251 |
},
|