eagle0504 commited on
Commit
014addd
1 Parent(s): 46e7bbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py CHANGED
@@ -13,6 +13,7 @@
13
  # limitations under the License.
14
 
15
  import streamlit as st
 
16
  from utils.helper import *
17
 
18
  def run():
@@ -125,5 +126,20 @@ def run():
125
  st.markdown(ai_answer)
126
 
127
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
  if __name__ == "__main__":
129
  run()
 
13
  # limitations under the License.
14
 
15
  import streamlit as st
16
+ from datetime import datetime
17
  from utils.helper import *
18
 
19
  def run():
 
126
  st.markdown(ai_answer)
127
 
128
 
129
+ # Credit
130
+ def current_year():
131
+ now = datetime.now()
132
+ return now.year
133
+
134
+ # Example usage:
135
+ current_year = current_year() # This will print the current year
136
+ st.markdown(
137
+ f"""
138
+ <h6 style='text-align: left;'>Copyright © 2010-{current_year} Present Yiqiao Yin</h6>
139
+ """,
140
+ unsafe_allow_html=True,
141
+ )
142
+
143
+
144
  if __name__ == "__main__":
145
  run()