mashaelalbu commited on
Commit
dc8f28f
·
verified ·
1 Parent(s): 36ac855

Update app/routes.py

Browse files
Files changed (1) hide show
  1. 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(image, user_allergens)
 
 
 
 
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,