ClayTreeClay commited on
Commit
9492b61
·
1 Parent(s): 6e496c2

updated API KEY

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -3,8 +3,10 @@ import requests
3
  import json
4
  from pprint import pprint
5
  import gradio as gr
 
6
 
7
- API_KEY = "2b109sYMpWyL50uehM9kUesDMO" # Your API_KEY here
 
8
  PROJECT = "all"; # try specific floras: "weurope", "canada"
9
  api_endpoint = f"https://my-api.plantnet.org/v2/identify/{PROJECT}?api-key={API_KEY}&lang=zh"
10
 
 
3
  import json
4
  from pprint import pprint
5
  import gradio as gr
6
+ import os
7
 
8
+
9
+ API_KEY = os.environ.get('PLANT_API_KEY') # Your API_KEY from https://my.plantnet.org/account/settings
10
  PROJECT = "all"; # try specific floras: "weurope", "canada"
11
  api_endpoint = f"https://my-api.plantnet.org/v2/identify/{PROJECT}?api-key={API_KEY}&lang=zh"
12