frendyrachman commited on
Commit
1cfe1a6
·
verified ·
1 Parent(s): a6a52ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -144,7 +144,7 @@ def gemini_analysis(images, tanggal_berangkat, tanggal_pulang, api_key):
144
  response_mime_type="application/json"
145
  )
146
  )
147
- token_usage = response.usage_metadata
148
  raw_output = response.text
149
  # ✅ Inisialisasi variabel default
150
  analysis = {}
 
144
  response_mime_type="application/json"
145
  )
146
  )
147
+ token_usage = response.usage_metadata.total_token_count
148
  raw_output = response.text
149
  # ✅ Inisialisasi variabel default
150
  analysis = {}