akarshrajsingh7 commited on
Commit
4d78b95
·
1 Parent(s): c67e5d3

Note Added - Cache issue

Browse files
Files changed (1) hide show
  1. app.py +17 -1
app.py CHANGED
@@ -41,6 +41,12 @@ st.set_page_config(page_title="Fastify Reader",
41
  page_icon=":books:",
42
  layout="wide")
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)
@@ -74,7 +80,11 @@ with tab1:
74
  with st.container(border = True):
75
  st.markdown("<div style='text-align: center;'><strong>Fastified PDF viewer</strong></div>", unsafe_allow_html=True)
76
  st.markdown(pdf_display, unsafe_allow_html=True)
77
-
 
 
 
 
78
 
79
  with tab2:
80
  st.header("Input Text")
@@ -103,4 +113,10 @@ with tab2:
103
  with st.container(border = True):
104
  st.markdown("<div style='text-align: center;'><strong>Fastified PDF viewer</strong></div>", unsafe_allow_html=True)
105
  st.markdown(pdf_display, unsafe_allow_html=True)
 
 
 
 
 
 
106
 
 
41
  page_icon=":books:",
42
  layout="wide")
43
 
44
+ note_text = """
45
+ If the PDF is not being rendered by your browser, <br>
46
+ &emsp;1. Try this link - (https://akarshrajsingh7-fastify-reader.hf.space/) <br>
47
+ &emsp;2. Download the PDF and open it in a PDF viewer.
48
+ """
49
+
50
  with st.sidebar:
51
  st.image("Logo.jpg")
52
  st.markdown("<div style='text-align: center;'>How fast can you read?</div>", unsafe_allow_html=True)
 
80
  with st.container(border = True):
81
  st.markdown("<div style='text-align: center;'><strong>Fastified PDF viewer</strong></div>", unsafe_allow_html=True)
82
  st.markdown(pdf_display, unsafe_allow_html=True)
83
+ st.markdown(f"""
84
+ <div style='background-color: #FFD580; border-radius: 5px;'>
85
+ <p style='color: black;'><strong>Note</strong> - {note_text}</p>
86
+ </div>
87
+ """, unsafe_allow_html=True)
88
 
89
  with tab2:
90
  st.header("Input Text")
 
113
  with st.container(border = True):
114
  st.markdown("<div style='text-align: center;'><strong>Fastified PDF viewer</strong></div>", unsafe_allow_html=True)
115
  st.markdown(pdf_display, unsafe_allow_html=True)
116
+
117
+ st.markdown(f"""
118
+ <div style='background-color: #FFD580; border-radius: 5px;'>
119
+ <p style='color: black;'><strong>Note</strong> - {note_text}</p>
120
+ </div>
121
+ """, unsafe_allow_html=True)
122