Edamam API and dish volume estimation
Build, push image, and notify Watchtower / build-image (push) Successful in 2m33s
Build, push image, and notify Watchtower / notify (push) Successful in 9s

This commit is contained in:
2026-07-25 16:31:50 +02:00
parent a0af426c78
commit 6a42e4a772
8 changed files with 1135 additions and 4 deletions
+13 -3
View File
@@ -3,8 +3,13 @@ import base64
import uuid
from flask import Flask, request, jsonify
from pymongo import MongoClient
from tools.aichat import generate
from shared import config
from APIs import generate, EdamamAPI
import sys
sys.path.insert(0, '..')
try:
from shared import config
except ImportError:
from ..shared import config
app = Flask(__name__)
@@ -93,7 +98,12 @@ def device_network():
except Exception as e:
return jsonify({"error": f"Database error: {str(e)}"}), 500
@app.route("/debug", methods=["GET"])
def debug():
image_path = "microwaveDish.jpg"
edamam = EdamamAPI()
return edamam.analyze_dish_image(image_path)
if __name__ == "__main__":
app.run(debug=config.DEBUG)