Ninad077 commited on
Commit
9cea188
·
verified ·
1 Parent(s): 89f8a67

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -146,9 +146,10 @@ def display_saved_records():
146
  # Save DataFrame to CSV without index
147
  df.to_csv(file_path, index=False)
148
 
 
149
  button_styles = """
150
  <style>
151
- .stButton button {
152
  color: #ffffff; /* Text color */
153
  font-size: 20px;
154
  background-image: linear-gradient(0deg, #a689f6 3%, #413bb9 61%);
@@ -162,9 +163,9 @@ def display_saved_records():
162
  transition: background-color 0.3s ease;
163
  }
164
 
165
- .stButton button:hover {
166
- background-color: #00ff00; /* Hover background color */
167
- color: #ff0000; /* Hover text color */
168
  }
169
  </style>
170
  """
@@ -173,6 +174,7 @@ def display_saved_records():
173
  st.markdown(button_styles, unsafe_allow_html=True)
174
 
175
  # Define file path (replace with your actual file path)
 
176
  file_path = os.path.join(folder_path, "records.csv")
177
 
178
  # Function to read file data
@@ -187,7 +189,7 @@ def display_saved_records():
187
  data=read_file(file_path),
188
  file_name="records.csv",
189
  mime="text/csv",
190
- )
191
 
192
  # Function to load theme configuration
193
  def load_theme_config():
@@ -237,7 +239,7 @@ user_name = st.sidebar.text_input("Enter your name:")
237
  html_content_1 = """
238
  <h1 style='
239
  color: #a689f6;
240
- font-size: 28px;
241
  background-image: -webkit-linear-gradient(0deg, #a689f6 3%, #272191 33%, #413bb9 61%);
242
  background-clip: text;
243
  -webkit-background-clip: text;
@@ -270,7 +272,7 @@ if bundle_by == "Feature specific":
270
  html_content_2 = """
271
  <h1 style='
272
  color: #a689f6;
273
- font-size: 28px;
274
  background-image: -webkit-linear-gradient(0deg, #a689f6 3%, #272191 33%, #413bb9 61%);
275
  background-clip: text;
276
  -webkit-background-clip: text;
@@ -824,3 +826,4 @@ elif bundle_by == "Single value":
824
  # Display saved records
825
  display_saved_records()
826
 
 
 
146
  # Save DataFrame to CSV without index
147
  df.to_csv(file_path, index=False)
148
 
149
+ # Custom CSS styles
150
  button_styles = """
151
  <style>
152
+ .stDownloadButton button {
153
  color: #ffffff; /* Text color */
154
  font-size: 20px;
155
  background-image: linear-gradient(0deg, #a689f6 3%, #413bb9 61%);
 
163
  transition: background-color 0.3s ease;
164
  }
165
 
166
+ .stDownloadButton button:hover {
167
+ background-color: #00ff00; /* Hover background color */
168
+ color: #ff0000; /* Hover text color */
169
  }
170
  </style>
171
  """
 
174
  st.markdown(button_styles, unsafe_allow_html=True)
175
 
176
  # Define file path (replace with your actual file path)
177
+ folder_path = "data"
178
  file_path = os.path.join(folder_path, "records.csv")
179
 
180
  # Function to read file data
 
189
  data=read_file(file_path),
190
  file_name="records.csv",
191
  mime="text/csv",
192
+ )
193
 
194
  # Function to load theme configuration
195
  def load_theme_config():
 
239
  html_content_1 = """
240
  <h1 style='
241
  color: #a689f6;
242
+ font-size: 22px;
243
  background-image: -webkit-linear-gradient(0deg, #a689f6 3%, #272191 33%, #413bb9 61%);
244
  background-clip: text;
245
  -webkit-background-clip: text;
 
272
  html_content_2 = """
273
  <h1 style='
274
  color: #a689f6;
275
+ font-size: 22px;
276
  background-image: -webkit-linear-gradient(0deg, #a689f6 3%, #272191 33%, #413bb9 61%);
277
  background-clip: text;
278
  -webkit-background-clip: text;
 
826
  # Display saved records
827
  display_saved_records()
828
 
829
+ # Exporting the data to BQ