Spaces:
Sleeping
Sleeping
Update app/routes.py
Browse files- app/routes.py +5 -1
app/routes.py
CHANGED
@@ -83,7 +83,11 @@ def process_image():
|
|
83 |
image = Image.open(file_stream)
|
84 |
|
85 |
# تحليل الصورة مباشرة
|
86 |
-
analysis_results = allergy_analyzer.analyze_image(
|
|
|
|
|
|
|
|
|
87 |
|
88 |
response = {
|
89 |
"success": True,
|
|
|
83 |
image = Image.open(file_stream)
|
84 |
|
85 |
# تحليل الصورة مباشرة
|
86 |
+
analysis_results = allergy_analyzer.analyze_image(
|
87 |
+
image,
|
88 |
+
user_allergens,
|
89 |
+
current_app.config.get('CLAUDE_API_KEY')
|
90 |
+
)
|
91 |
|
92 |
response = {
|
93 |
"success": True,
|