Spaces:
Sleeping
Sleeping
Commit
·
5be16b9
1
Parent(s):
b9648f5
Font size
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def text_to_pdf_fastify(text):
|
|
25 |
bold_text = bold_text.encode('latin-1', 'ignore').decode('latin-1')
|
26 |
pdf = FPDF()
|
27 |
pdf.add_page()
|
28 |
-
pdf.set_font("Arial", size =
|
29 |
pdf.multi_cell(0, 10, txt = bold_text, markdown=True)
|
30 |
return bytes(pdf.output())
|
31 |
|
@@ -33,7 +33,7 @@ def text_to_pdf(text):
|
|
33 |
text = text.encode('latin-1', 'ignore').decode('latin-1')
|
34 |
pdf = FPDF()
|
35 |
pdf.add_page()
|
36 |
-
pdf.set_font("Arial", size =
|
37 |
pdf.multi_cell(0, 10, txt = text, markdown=True)
|
38 |
return bytes(pdf.output())
|
39 |
|
@@ -43,7 +43,7 @@ st.set_page_config(page_title="Fastify Reader",
|
|
43 |
|
44 |
with st.sidebar:
|
45 |
st.image("Logo.jpg")
|
46 |
-
st.markdown("<div style='text-align: center;'>How fast can you read
|
47 |
|
48 |
tab1, tab2= st.tabs(["PDF file", "Input Text"])
|
49 |
|
|
|
25 |
bold_text = bold_text.encode('latin-1', 'ignore').decode('latin-1')
|
26 |
pdf = FPDF()
|
27 |
pdf.add_page()
|
28 |
+
pdf.set_font("Arial", size = 14)
|
29 |
pdf.multi_cell(0, 10, txt = bold_text, markdown=True)
|
30 |
return bytes(pdf.output())
|
31 |
|
|
|
33 |
text = text.encode('latin-1', 'ignore').decode('latin-1')
|
34 |
pdf = FPDF()
|
35 |
pdf.add_page()
|
36 |
+
pdf.set_font("Arial", size = 14)
|
37 |
pdf.multi_cell(0, 10, txt = text, markdown=True)
|
38 |
return bytes(pdf.output())
|
39 |
|
|
|
43 |
|
44 |
with st.sidebar:
|
45 |
st.image("Logo.jpg")
|
46 |
+
st.markdown("<div style='text-align: center;'>How fast can you read?</div>", unsafe_allow_html=True)
|
47 |
|
48 |
tab1, tab2= st.tabs(["PDF file", "Input Text"])
|
49 |
|