Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -139,7 +139,7 @@ def orchestrate_workflow(image, nutritionix_key, llm_key):
|
|
| 139 |
return nutrition, ""
|
| 140 |
|
| 141 |
# Step 4: Generate advice with user's LLM key
|
| 142 |
-
advice = get_nutrition_advice(nutrition, llm_key)
|
| 143 |
|
| 144 |
# Format output
|
| 145 |
result = "Food Analysis:\n"
|
|
@@ -150,7 +150,7 @@ def orchestrate_workflow(image, nutritionix_key, llm_key):
|
|
| 150 |
f"{data['calories']} cal, {data['protein']:.1f}g protein, "
|
| 151 |
f"{data['fat']:.1f}g fat, {data['carbs']:.1f}g carbs\n")
|
| 152 |
|
| 153 |
-
return result
|
| 154 |
|
| 155 |
# Gradio Interface
|
| 156 |
interface = gr.Interface(
|
|
|
|
| 139 |
return nutrition, ""
|
| 140 |
|
| 141 |
# Step 4: Generate advice with user's LLM key
|
| 142 |
+
#advice = get_nutrition_advice(nutrition, llm_key)
|
| 143 |
|
| 144 |
# Format output
|
| 145 |
result = "Food Analysis:\n"
|
|
|
|
| 150 |
f"{data['calories']} cal, {data['protein']:.1f}g protein, "
|
| 151 |
f"{data['fat']:.1f}g fat, {data['carbs']:.1f}g carbs\n")
|
| 152 |
|
| 153 |
+
return result #, advice
|
| 154 |
|
| 155 |
# Gradio Interface
|
| 156 |
interface = gr.Interface(
|