Spaces:
Runtime error
Runtime error
Commit
·
720f74d
1
Parent(s):
67e7a47
Update app.py
Browse files
app.py
CHANGED
@@ -49,12 +49,18 @@ def process_text(inputs):
|
|
49 |
|
50 |
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
import base64
|
53 |
from io import BytesIO
|
|
|
|
|
|
|
54 |
from weasyprint import HTML
|
55 |
-
#from streamlit_quill import Delta, Renderer
|
56 |
-
from quill.delta import Delta
|
57 |
-
|
58 |
|
59 |
def save_as_pdf(text):
|
60 |
# convert quill editor Delta object to HTML and render with Renderer
|
|
|
49 |
|
50 |
|
51 |
|
52 |
+
# import base64
|
53 |
+
# from io import BytesIO
|
54 |
+
# from weasyprint import HTML
|
55 |
+
# #from streamlit_quill import Delta, Renderer
|
56 |
+
# from quill.delta import Delta
|
57 |
+
|
58 |
import base64
|
59 |
from io import BytesIO
|
60 |
+
from streamlit_quill import Delta
|
61 |
+
from streamlit_quill import Renderer
|
62 |
+
from streamlit_quill import st_quill
|
63 |
from weasyprint import HTML
|
|
|
|
|
|
|
64 |
|
65 |
def save_as_pdf(text):
|
66 |
# convert quill editor Delta object to HTML and render with Renderer
|