edwinrajeev commited on
Commit
1d88a2b
·
1 Parent(s): 57b7046

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -213,12 +213,8 @@ def goda(Case, Hs, Hmax, h, d, h_acc, hc, T, beta, rho, slope_foreshore, B, lamb
213
  #fig = ff.create_table(data_matrix)
214
  #fig.update_layout(width=1000)
215
  title = 'Case Number ' + str(Case) + ' Horizontal table.csv'
216
- csv_string = pd.DataFrame(data_matrix).to_csv(title, header=None, index=None)
217
 
218
- # Create a download link for the generated CSV file
219
- b64 = base64.b64encode(csv_string.encode()).decode()
220
- href = f'<a href="data:file/csv;base64,{b64}" download="{title}">Download CSV</a>'
221
- st.markdown(href, unsafe_allow_html=True)
222
  #fig.write_image()
223
 
224
 
@@ -243,13 +239,9 @@ def goda(Case, Hs, Hmax, h, d, h_acc, hc, T, beta, rho, slope_foreshore, B, lamb
243
  ['Load Elevation', '[ft] MSL', round(Bottom_of_Wall + Load_Distance_from_Bottom,2)]]
244
 
245
  title = 'Case Number ' + str(Case) + ' Suction table.csv'
246
- csv_string = pd.DataFrame(data_matrix).to_csv(title, header=None, index=None)
247
 
248
 
249
- # Create a download link for the generated CSV file
250
- b64 = base64.b64encode(csv_string.encode()).decode()
251
- href = f'<a href="data:file/csv;base64,{b64}" download="{title}">Download CSV</a>'
252
- st.markdown(href, unsafe_allow_html=True)
253
 
254
 
255
 
 
213
  #fig = ff.create_table(data_matrix)
214
  #fig.update_layout(width=1000)
215
  title = 'Case Number ' + str(Case) + ' Horizontal table.csv'
216
+ pd.DataFrame(data_matrix).to_csv(title, header=None, index=None)
217
 
 
 
 
 
218
  #fig.write_image()
219
 
220
 
 
239
  ['Load Elevation', '[ft] MSL', round(Bottom_of_Wall + Load_Distance_from_Bottom,2)]]
240
 
241
  title = 'Case Number ' + str(Case) + ' Suction table.csv'
242
+ pd.DataFrame(data_matrix).to_csv(title, header=None, index=None)
243
 
244
 
 
 
 
 
245
 
246
 
247