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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -21
app.py CHANGED
@@ -130,21 +130,6 @@ def main():
130
  padding: 10px;
131
  font-size: 16px;
132
  }
133
- </style>
134
- """, unsafe_allow_html=True)
135
-
136
- st.title("Microcontroller Code Generator", anchor="title")
137
-
138
- # Step 1: Display Custom Image
139
- # Use the image URL from Imgur
140
- image_url = "https://imgur.com/CBm5exE.png"
141
- st.image(image_url, caption="Custom Image", use_container_width=True)
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;
@@ -158,12 +143,14 @@ def main():
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:
@@ -191,6 +178,13 @@ def main():
191
  st.subheader("Generated Code", anchor="generated-code")
192
  st.code(code)
193
 
 
 
 
 
 
 
 
194
  # Run the Streamlit App
195
  if __name__ == "__main__":
196
  main()
 
130
  padding: 10px;
131
  font-size: 16px;
132
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  .top-bar-logo {
134
  position: absolute;
135
  top: 0;
 
143
  </style>
144
  """, unsafe_allow_html=True)
145
 
146
+ st.title("Microcontroller Code Generator", anchor="title")
147
+
148
+ # Step 1: Display Custom Image
149
+ # Use the image URL from Imgur
150
+ image_url = "https://imgur.com/CBm5exE.png"
151
+ st.image(image_url, caption="Custom Image", use_container_width=True)
152
+
153
+ st.write("Select a microcontroller and provide your code requirements to generate code.")
154
 
155
  # Sidebar with different selection options for users
156
  with st.sidebar:
 
178
  st.subheader("Generated Code", anchor="generated-code")
179
  st.code(code)
180
 
181
+ # Add logo to the top bar using the new Imgur image URL
182
+ st.markdown("""
183
+ <div class="top-bar-logo">
184
+ <img src="https://i.imgur.com/CBm5exE.png" alt="Logo" width="150">
185
+ </div>
186
+ """, unsafe_allow_html=True)
187
+
188
  # Run the Streamlit App
189
  if __name__ == "__main__":
190
  main()