Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ def index():
|
|
69 |
else: # PNG
|
70 |
# Convert HTML to PNG using imgkit
|
71 |
png_path = os.path.join(TEMP_DIR, "output.png")
|
72 |
-
imgkit.from_string(full_html, png_path, options={"quiet": ""})
|
73 |
return send_file(
|
74 |
png_path,
|
75 |
as_attachment=True,
|
|
|
69 |
else: # PNG
|
70 |
# Convert HTML to PNG using imgkit
|
71 |
png_path = os.path.join(TEMP_DIR, "output.png")
|
72 |
+
imgkit.from_string(full_html, png_path, options={"quiet": "",'encoding': "UTF-8"})
|
73 |
return send_file(
|
74 |
png_path,
|
75 |
as_attachment=True,
|