Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -88,13 +88,12 @@ def generate_report_image(image, question_ar, question_en, answer_ar, answer_en)
|
|
88 |
background.paste(img_resized, (50, 110))
|
89 |
|
90 |
x, y = 380, 110
|
91 |
-
spacing =
|
92 |
lines = [
|
93 |
-
f"
|
94 |
-
f"
|
95 |
-
f"
|
96 |
-
f"
|
97 |
-
f"🔖 المصدر: NTI"
|
98 |
]
|
99 |
|
100 |
for line in lines:
|
|
|
88 |
background.paste(img_resized, (50, 110))
|
89 |
|
90 |
x, y = 380, 110
|
91 |
+
spacing = 60
|
92 |
lines = [
|
93 |
+
f" السؤال بالعربية:\n{question_ar}",
|
94 |
+
f" Question in English:\n{question_en}",
|
95 |
+
f" الإجابة بالعربية:\n{answer_ar}",
|
96 |
+
f" Answer in English:\n{answer_en}"
|
|
|
97 |
]
|
98 |
|
99 |
for line in lines:
|