sara.mesquita commited on
Commit
32bbd17
·
1 Parent(s): 094c5de

adjusts ia

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -277,6 +277,8 @@ def process_sighting(image, gps_json, notes, progress=gr.Progress()):
277
  is_new = False
278
  else:
279
  animal_id = db.create_animal(description, embedding)
 
 
280
  db.add_sighting(animal_id, photo_path, lat, lng, notes)
281
  count = 1
282
  species = description.get("species", "dog")
 
277
  is_new = False
278
  else:
279
  animal_id = db.create_animal(description, embedding)
280
+ photo_path = db.save_photo(image, animal_id=animal_id)
281
+ photo_url = db.photo_url(photo_path) or ""
282
  db.add_sighting(animal_id, photo_path, lat, lng, notes)
283
  count = 1
284
  species = description.get("species", "dog")