Update modules/ai_assistant/ai_app.py
Browse files
modules/ai_assistant/ai_app.py
CHANGED
@@ -568,7 +568,7 @@ class AIAssistantApp:
|
|
568 |
if self.pdf_conversion_available:
|
569 |
try:
|
570 |
# تحويل الصفحة الأولى فقط
|
571 |
-
images = convert_from_path(temp_file_path, first_page=1, last_page=1)
|
572 |
if images:
|
573 |
# حفظ الصورة بشكل مؤقت
|
574 |
temp_image_path = f"{temp_file_path}_image.jpg"
|
|
|
568 |
if self.pdf_conversion_available:
|
569 |
try:
|
570 |
# تحويل الصفحة الأولى فقط
|
571 |
+
images = self.convert_from_path(temp_file_path, first_page=1, last_page=1)
|
572 |
if images:
|
573 |
# حفظ الصورة بشكل مؤقت
|
574 |
temp_image_path = f"{temp_file_path}_image.jpg"
|