Update app.py
Browse files
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 {
|
| 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()
|