ranchopanda0 commited on
Commit
9f9cd44
·
verified ·
1 Parent(s): 9e11a03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -1,5 +1,7 @@
1
- import os
2
- from dotenv import load_dotenv
3
-
4
- load_dotenv()
5
- print(f"🔍 API Key: {os.getenv('PLANT_ID_API_KEY')}")
 
 
 
1
+ if __name__ == "__main__":
2
+ gr.Interface(
3
+ fn=analyze_plant,
4
+ inputs=gr.Image(type="pil", label="🖼️ Upload Leaf"),
5
+ outputs=gr.Markdown(),
6
+ title="🌿 Plant Disease Detector"
7
+ ).launch()