Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,8 @@ model = YOLO('Corn-Disease50Epoch.pt')
|
|
12 |
name = ['Leaf Blight', 'Corn Rust', 'Gray Leaf Spot', 'Healthy']
|
13 |
image_directory = "/home/user/app/images"
|
14 |
|
|
|
|
|
15 |
def get_deepseek_solution(disease_name):
|
16 |
try:
|
17 |
response = requests.post(
|
|
|
12 |
name = ['Leaf Blight', 'Corn Rust', 'Gray Leaf Spot', 'Healthy']
|
13 |
image_directory = "/home/user/app/images"
|
14 |
|
15 |
+
API_KEY = os.environ.get("API_KEY")
|
16 |
+
|
17 |
def get_deepseek_solution(disease_name):
|
18 |
try:
|
19 |
response = requests.post(
|