Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -172,7 +172,7 @@ def create_img1(imagep, text_overlay, color):
|
|
| 172 |
output_image_path = 'output_image.jpg'
|
| 173 |
cv2.imwrite(output_image_path, overlay)
|
| 174 |
|
| 175 |
-
img = text_to_image(add_line_breaks(text_overlay, 13),"/
|
| 176 |
img.save("outputtext.png", format="PNG")
|
| 177 |
|
| 178 |
text = cv2.imread('/content/outputtext.png',cv2.IMREAD_UNCHANGED)
|
|
@@ -272,7 +272,7 @@ def create_img2(imagep, text_overlay, color):
|
|
| 272 |
output_image_path = 'output_image.jpg'
|
| 273 |
cv2.imwrite(output_image_path, overlay)
|
| 274 |
|
| 275 |
-
img = text_to_image(add_line_breaks(text_overlay, 13),"/
|
| 276 |
img.save("outputtext.png", format="PNG")
|
| 277 |
|
| 278 |
text = cv2.imread('/content/outputtext.png',cv2.IMREAD_UNCHANGED)
|
|
|
|
| 172 |
output_image_path = 'output_image.jpg'
|
| 173 |
cv2.imwrite(output_image_path, overlay)
|
| 174 |
|
| 175 |
+
img = text_to_image(add_line_breaks(text_overlay, 13),"/Poppins/Poppins-Medium.ttf",100,color[8] )
|
| 176 |
img.save("outputtext.png", format="PNG")
|
| 177 |
|
| 178 |
text = cv2.imread('/content/outputtext.png',cv2.IMREAD_UNCHANGED)
|
|
|
|
| 272 |
output_image_path = 'output_image.jpg'
|
| 273 |
cv2.imwrite(output_image_path, overlay)
|
| 274 |
|
| 275 |
+
img = text_to_image(add_line_breaks(text_overlay, 13),"/Poppins/Poppins-Medium.ttf",100,color[1] )
|
| 276 |
img.save("outputtext.png", format="PNG")
|
| 277 |
|
| 278 |
text = cv2.imread('/content/outputtext.png',cv2.IMREAD_UNCHANGED)
|