ryantong3 commited on
Commit
17b3758
·
verified ·
1 Parent(s): 9893a6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def main():
20
  type_food = oracle(image, "What type of food is this?")
21
  cal_est = oracle(image, "About how many calories are in this meal?")
22
  guess1, guess2 = cal_est[0]['answer'], cal_est[1]['answer']
23
- st.write(f"This is {cal_est[0]['answer']}. I estimate this to contain {min(guess1, guess2)}-{max(guess1, guess2)} calories")
24
 
25
  if __name__ == "__main__":
26
  main()
 
20
  type_food = oracle(image, "What type of food is this?")
21
  cal_est = oracle(image, "About how many calories are in this meal?")
22
  guess1, guess2 = cal_est[0]['answer'], cal_est[1]['answer']
23
+ st.write(f"This is {type_food[0]['answer']}. I estimate this to contain {min(guess1, guess2)}-{max(guess1, guess2)} calories")
24
 
25
  if __name__ == "__main__":
26
  main()