"ASPCA lists as non-toxic" pet filters; names checked against GBIF
Browse filesThe pet filters "Verified safe for dogs/cats" select the plants the ASPCA lists as
non-toxic (aspca_verified, flag 0; a genus inference never sets a 0), so they are named
that way. "GBIF-verified names" becomes "names checked against GBIF" in the app and the
card, as on the FloraDB site since FloraaDB/houseplants-botanical-floradb#26. Filter
results are unchanged.
README.md
CHANGED
|
@@ -12,7 +12,7 @@ license: cc-by-nc-4.0
|
|
| 12 |
|
| 13 |
# 🌿 FloraDB — Houseplant Care & Pet-Toxicity Sample Explorer
|
| 14 |
|
| 15 |
-
Interactively explore the free sample of [FloraDB](https://floradb.dataengineered.io): quantitative houseplant care metrics (Lux, watering intervals, temperature, humidity) joined to ASPCA dog/cat toxicity on
|
| 16 |
|
| 17 |
Data: [free sample dataset](https://huggingface.co/datasets/Ichlibitiche/floradb-houseplants-care-sample) (100 plants, 28 families). The full dataset (270 care plants, 891 toxicity records, 20,000+ species index) is available at [floradb.dataengineered.io](https://floradb.dataengineered.io).
|
| 18 |
|
|
|
|
| 12 |
|
| 13 |
# 🌿 FloraDB — Houseplant Care & Pet-Toxicity Sample Explorer
|
| 14 |
|
| 15 |
+
Interactively explore the free sample of [FloraDB](https://floradb.dataengineered.io): quantitative houseplant care metrics (Lux, watering intervals, temperature, humidity) joined to ASPCA dog/cat toxicity on names checked against GBIF.
|
| 16 |
|
| 17 |
Data: [free sample dataset](https://huggingface.co/datasets/Ichlibitiche/floradb-houseplants-care-sample) (100 plants, 28 families). The full dataset (270 care plants, 891 toxicity records, 20,000+ species index) is available at [floradb.dataengineered.io](https://floradb.dataengineered.io).
|
| 18 |
|
app.py
CHANGED
|
@@ -24,8 +24,8 @@ DISPLAY_COLS = {
|
|
| 24 |
|
| 25 |
PET_FILTERS = [
|
| 26 |
"All",
|
| 27 |
-
"
|
| 28 |
-
"
|
| 29 |
"Toxic to dogs or cats",
|
| 30 |
"Toxicity unknown",
|
| 31 |
]
|
|
@@ -50,9 +50,9 @@ def explore(name_query, family, light, confidence, pet_filter):
|
|
| 50 |
if confidence != "All":
|
| 51 |
d = d[d["care_confidence"] == confidence]
|
| 52 |
# Safety filters are conservative: "safe" requires a determined status, never unknown
|
| 53 |
-
if pet_filter == "
|
| 54 |
d = d[(d["is_toxic_to_dogs"] == 0) & (d["toxicity_status"] != "unknown")]
|
| 55 |
-
elif pet_filter == "
|
| 56 |
d = d[(d["is_toxic_to_cats"] == 0) & (d["toxicity_status"] != "unknown")]
|
| 57 |
elif pet_filter == "Toxic to dogs or cats":
|
| 58 |
d = d[(d["is_toxic_to_dogs"] == 1) | (d["is_toxic_to_cats"] == 1)]
|
|
@@ -68,7 +68,7 @@ def explore(name_query, family, light, confidence, pet_filter):
|
|
| 68 |
|
| 69 |
with gr.Blocks(title="FloraDB Sample Explorer") as demo:
|
| 70 |
gr.Markdown("# 🌿 FloraDB: Houseplant Care & Pet-Toxicity Sample Explorer")
|
| 71 |
-
gr.Markdown(f"""Explore **{len(df)} houseplants from {df['family'].nunique()} botanical families** — care advice as **quantitative metrics** (Lux, watering days, °C, humidity) with **ASPCA pet toxicity** on
|
| 72 |
|
| 73 |
---
|
| 74 |
### 🌐 This is the free sample. The full FloraDB has 270 care plants, 891 toxicity records & a 20,000+ species index.
|
|
|
|
| 24 |
|
| 25 |
PET_FILTERS = [
|
| 26 |
"All",
|
| 27 |
+
"ASPCA lists as non-toxic to dogs",
|
| 28 |
+
"ASPCA lists as non-toxic to cats",
|
| 29 |
"Toxic to dogs or cats",
|
| 30 |
"Toxicity unknown",
|
| 31 |
]
|
|
|
|
| 50 |
if confidence != "All":
|
| 51 |
d = d[d["care_confidence"] == confidence]
|
| 52 |
# Safety filters are conservative: "safe" requires a determined status, never unknown
|
| 53 |
+
if pet_filter == "ASPCA lists as non-toxic to dogs":
|
| 54 |
d = d[(d["is_toxic_to_dogs"] == 0) & (d["toxicity_status"] != "unknown")]
|
| 55 |
+
elif pet_filter == "ASPCA lists as non-toxic to cats":
|
| 56 |
d = d[(d["is_toxic_to_cats"] == 0) & (d["toxicity_status"] != "unknown")]
|
| 57 |
elif pet_filter == "Toxic to dogs or cats":
|
| 58 |
d = d[(d["is_toxic_to_dogs"] == 1) | (d["is_toxic_to_cats"] == 1)]
|
|
|
|
| 68 |
|
| 69 |
with gr.Blocks(title="FloraDB Sample Explorer") as demo:
|
| 70 |
gr.Markdown("# 🌿 FloraDB: Houseplant Care & Pet-Toxicity Sample Explorer")
|
| 71 |
+
gr.Markdown(f"""Explore **{len(df)} houseplants from {df['family'].nunique()} botanical families** — care advice as **quantitative metrics** (Lux, watering days, °C, humidity) with **ASPCA pet toxicity** on names checked against GBIF.
|
| 72 |
|
| 73 |
---
|
| 74 |
### 🌐 This is the free sample. The full FloraDB has 270 care plants, 891 toxicity records & a 20,000+ species index.
|