sahsan commited on
Commit
7d42f70
·
1 Parent(s): 6448f12

Added buttons linking project files

Browse files
Files changed (2) hide show
  1. .gitignore +18 -0
  2. src/app.py +26 -4
.gitignore ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Python
2
+ __pycache__/
3
+ *.pyc
4
+ *.pyo
5
+ *.pyd
6
+ .Python/
7
+ env/
8
+ venv/
9
+ src/.env
10
+
11
+ # IDEs
12
+ .vscode/
13
+ .idea/
14
+
15
+ # OS
16
+ .DS_Store
17
+ .Trash/
18
+ *.log
src/app.py CHANGED
@@ -535,7 +535,18 @@ def show_auth_forms():
535
  if st.button("Don't have an account? Register"):
536
  switch_to_register()
537
 
538
-
 
 
 
 
 
 
 
 
 
 
 
539
 
540
  with col2:
541
  st.subheader("Register")
@@ -1062,7 +1073,6 @@ def main():
1062
  logout_user()
1063
  st.rerun()
1064
 
1065
- st.divider()
1066
 
1067
  # Account management section
1068
  with st.expander("Account Management"):
@@ -1174,7 +1184,20 @@ def main():
1174
  display_evaluation_results(location="sidebar")
1175
  except Exception as e:
1176
  st.error(f"Error displaying evaluation results: {str(e)}")
1177
-
 
 
 
 
 
 
 
 
 
 
 
 
 
1178
 
1179
  if not st.session_state.in_evaluation_mode:
1180
  # Check if user has API key set
@@ -1221,7 +1244,6 @@ def main():
1221
  else:
1222
  st.info("Evaluation in progress... Please wait. Results will appear here and in the sidebar once complete.")
1223
 
1224
-
1225
  st.markdown("""
1226
  <div style="text-align: center; padding: 20px 0; color: #6b7280; font-size: 14px; padding-bottom: 70px;"> Built with ❤️ to help students succeed
1227
  </div>
 
535
  if st.button("Don't have an account? Register"):
536
  switch_to_register()
537
 
538
+ st.markdown(
539
+ """
540
+ <div style="margin-top: 20px; text-align: left;">
541
+ <a href="https://huggingface.co/spaces/sahsan/cet_advisement_bot/tree/main" target="_blank"
542
+ style="display: inline-block; padding: 10px 20px; background-color: #4CAF50; color: white;
543
+ text-align: center; text-decoration: none; border-radius: 5px; font-size: 16px;">
544
+ View Project Files
545
+ </a>
546
+ </div>
547
+ """,
548
+ unsafe_allow_html=True
549
+ )
550
 
551
  with col2:
552
  st.subheader("Register")
 
1073
  logout_user()
1074
  st.rerun()
1075
 
 
1076
 
1077
  # Account management section
1078
  with st.expander("Account Management"):
 
1184
  display_evaluation_results(location="sidebar")
1185
  except Exception as e:
1186
  st.error(f"Error displaying evaluation results: {str(e)}")
1187
+
1188
+ st.divider()
1189
+ st.markdown(
1190
+ """
1191
+ <div style="margin-top: 20px; text-align: center;">
1192
+ <a href="https://huggingface.co/spaces/sahsan/cet_advisement_bot/tree/main" target="_blank"
1193
+ style="display: inline-block; padding: 10px 20px; background-color: #4CAF50; color: white;
1194
+ text-align: center; text-decoration: none; border-radius: 5px; font-size: 16px;">
1195
+ View Project Files
1196
+ </a>
1197
+ </div>
1198
+ """,
1199
+ unsafe_allow_html=True
1200
+ )
1201
 
1202
  if not st.session_state.in_evaluation_mode:
1203
  # Check if user has API key set
 
1244
  else:
1245
  st.info("Evaluation in progress... Please wait. Results will appear here and in the sidebar once complete.")
1246
 
 
1247
  st.markdown("""
1248
  <div style="text-align: center; padding: 20px 0; color: #6b7280; font-size: 14px; padding-bottom: 70px;"> Built with ❤️ to help students succeed
1249
  </div>