Update app.py
Browse files
app.py
CHANGED
|
@@ -3,12 +3,10 @@ import streamlit as st
|
|
| 3 |
from groq import Groq
|
| 4 |
|
| 5 |
# Set your API key (replace 'your_groq_api_key_here' with the actual API key)
|
| 6 |
-
GROQ_API_KEY = "
|
| 7 |
|
| 8 |
# Initialize the Groq client
|
| 9 |
-
client = Groq(
|
| 10 |
-
api_key="GROQ_API_KEY"
|
| 11 |
-
)
|
| 12 |
|
| 13 |
# Function to handle predictions
|
| 14 |
def predict_yield(climate_zone=None, region=None, yield_units=None, farm_size=None, fertilizer_rate=None,
|
|
|
|
| 3 |
from groq import Groq
|
| 4 |
|
| 5 |
# Set your API key (replace 'your_groq_api_key_here' with the actual API key)
|
| 6 |
+
GROQ_API_KEY = "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"
|
| 7 |
|
| 8 |
# Initialize the Groq client
|
| 9 |
+
client = Groq(api_key=GROQ_API_KEY)
|
|
|
|
|
|
|
| 10 |
|
| 11 |
# Function to handle predictions
|
| 12 |
def predict_yield(climate_zone=None, region=None, yield_units=None, farm_size=None, fertilizer_rate=None,
|