Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -97,52 +97,6 @@ def store_code_in_faiss(chunks):
|
|
| 97 |
faiss_index.add(np.array(embeddings, dtype=np.float32))
|
| 98 |
return faiss_index
|
| 99 |
|
| 100 |
-
# Streamlit App
|
| 101 |
-
def main():
|
| 102 |
-
# Custom styling for the app using markdown
|
| 103 |
-
st.markdown("""
|
| 104 |
-
<style>
|
| 105 |
-
body {
|
| 106 |
-
background: linear-gradient(to right, #ff7e5f, #feb47b, #6a11cb, #2575fc);
|
| 107 |
-
font-family: Arial, sans-serif;
|
| 108 |
-
}
|
| 109 |
-
.title {
|
| 110 |
-
font-size: 40px;
|
| 111 |
-
font-weight: bold;
|
| 112 |
-
color: #FF6347;
|
| 113 |
-
}
|
| 114 |
-
.subheader {
|
| 115 |
-
font-size: 24px;
|
| 116 |
-
color: #4CAF50;
|
| 117 |
-
}
|
| 118 |
-
.generated-code {
|
| 119 |
-
background-color: #f0f0f0;
|
| 120 |
-
padding: 10px;
|
| 121 |
-
border-radius: 10px;
|
| 122 |
-
}
|
| 123 |
-
.sidebar .sidebar-content {
|
| 124 |
-
background-color: #f4f4f4;
|
| 125 |
-
}
|
| 126 |
-
.stButton button {
|
| 127 |
-
background-color: #008CBA;
|
| 128 |
-
color: white;
|
| 129 |
-
border-radius: 8px;
|
| 130 |
-
padding: 10px;
|
| 131 |
-
font-size: 16px;
|
| 132 |
-
}
|
| 133 |
-
.top-bar-logo {
|
| 134 |
-
position: absolute;
|
| 135 |
-
top: 0;
|
| 136 |
-
left: 0;
|
| 137 |
-
padding: 10px;
|
| 138 |
-
z-index: 100;
|
| 139 |
-
}
|
| 140 |
-
.stApp {
|
| 141 |
-
padding-top: 50px; /* Adjust this based on your logo size */
|
| 142 |
-
}
|
| 143 |
-
</style>
|
| 144 |
-
""", unsafe_allow_html=True)
|
| 145 |
-
|
| 146 |
st.title("Microcontroller Code Generator", anchor="title")
|
| 147 |
|
| 148 |
# Step 1: Display Custom Image
|
|
|
|
| 97 |
faiss_index.add(np.array(embeddings, dtype=np.float32))
|
| 98 |
return faiss_index
|
| 99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
st.title("Microcontroller Code Generator", anchor="title")
|
| 101 |
|
| 102 |
# Step 1: Display Custom Image
|