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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -24
app.py CHANGED
@@ -142,30 +142,28 @@ def main():
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:
@@ -195,4 +193,4 @@ st.markdown("""
195
 
196
  # Run the Streamlit App
197
  if __name__ == "__main__":
198
- main()
 
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
  # Sidebar with different selection options for users
169
  with st.sidebar:
 
193
 
194
  # Run the Streamlit App
195
  if __name__ == "__main__":
196
+ main()