sunnynazir commited on
Commit
2834525
·
verified ·
1 Parent(s): 0cbd79a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -0
app.py CHANGED
@@ -142,6 +142,31 @@ def main():
142
 
143
  st.write("Select a microcontroller and provide your code requirements to generate code.")
144
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  # Sidebar with different selection options for users
146
  with st.sidebar:
147
  st.header("Microcontroller Selection")
 
142
 
143
  st.write("Select a microcontroller and provide your code requirements to generate code.")
144
 
145
+ # Custom styling for the app with logo in top bar
146
+ st.markdown("""
147
+ <style>
148
+ .top-bar-logo {
149
+ position: absolute;
150
+ top: 0;
151
+ left: 0;
152
+ padding: 10px;
153
+ z-index: 100;
154
+ }
155
+ .stApp {
156
+ padding-top: 50px; /* Adjust this based on your logo size */
157
+ }
158
+ </style>
159
+ """, unsafe_allow_html=True)
160
+
161
+ # Add logo to the top bar using the new Imgur image URL
162
+ st.markdown("""
163
+ <div class="top-bar-logo">
164
+ <img src="https://i.imgur.com/CBm5exE.png" alt="Logo" width="150">
165
+ </div>
166
+ """, unsafe_allow_html=True)
167
+
168
+
169
+
170
  # Sidebar with different selection options for users
171
  with st.sidebar:
172
  st.header("Microcontroller Selection")