palbha commited on
Commit
a41e24b
·
verified ·
1 Parent(s): 0f33f6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +37 -6
app.py CHANGED
@@ -35,20 +35,51 @@ def azure_cert_bot(cert_name):
35
 
36
  return search_results, response
37
 
38
- # Streamlit UI
39
  st.set_page_config(page_title="Azure Certification Prep Assistant", layout="wide")
40
- st.title("Azure Certification Prep Assistant")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
 
42
  cert_name = st.text_input("Enter Azure Certification Name (e.g., AZ-900)", "")
43
  if st.button("Get Certification Details"):
44
  if cert_name:
45
  links, qa_content = azure_cert_bot(cert_name)
46
 
47
- st.subheader("Certification Links & Curriculum")
48
  for link in links:
49
- st.markdown(f"- [{link}]({link})")
 
50
 
51
- st.subheader("Exam Questions & Answers")
52
- st.write(qa_content)
53
  else:
54
  st.warning("Please enter a certification name.")
 
 
35
 
36
  return search_results, response
37
 
 
38
  st.set_page_config(page_title="Azure Certification Prep Assistant", layout="wide")
39
+
40
+ # Custom Styling
41
+ st.markdown("""
42
+ <style>
43
+ body {
44
+ font-family: 'Arial', sans-serif;
45
+ }
46
+ .stApp {
47
+ background-color: #f5f7fa;
48
+ }
49
+ .title {
50
+ text-align: center;
51
+ color: #1f77b4;
52
+ font-size: 36px;
53
+ font-weight: bold;
54
+ }
55
+ .subheader {
56
+ color: #ff5733;
57
+ font-size: 24px;
58
+ font-weight: bold;
59
+ }
60
+ .markdown-text-container {
61
+ background-color: white;
62
+ padding: 15px;
63
+ border-radius: 10px;
64
+ box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
65
+ }
66
+ </style>
67
+ """, unsafe_allow_html=True)
68
+
69
+ st.markdown("<div class='title'>Azure Certification Prep Assistant</div>", unsafe_allow_html=True)
70
 
71
  cert_name = st.text_input("Enter Azure Certification Name (e.g., AZ-900)", "")
72
  if st.button("Get Certification Details"):
73
  if cert_name:
74
  links, qa_content = azure_cert_bot(cert_name)
75
 
76
+ st.markdown("<div class='subheader'>Certification Links & Curriculum</div>", unsafe_allow_html=True)
77
  for link in links:
78
+ if link.strip():
79
+ st.markdown(f"<div class='markdown-text-container'>- <a href='{link}' target='_blank'>{link}</a></div>", unsafe_allow_html=True)
80
 
81
+ st.markdown("<div class='subheader'>Exam Questions & Answers</div>", unsafe_allow_html=True)
82
+ st.markdown(f"<div class='markdown-text-container'>{qa_content}</div>", unsafe_allow_html=True)
83
  else:
84
  st.warning("Please enter a certification name.")
85
+