ksaramout commited on
Commit
b401ae1
·
1 Parent(s): 14a5579

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -345,11 +345,10 @@ if new_dataset_name or selected_dataset_name:
345
  max_dbu_single_run = (2*X/3) * (1 + 10)
346
 
347
  # Estimate monthly DBU consumption based on frequency
348
- frequency = st.selectbox("Select Run Frequency:", ["Daily", "Weekly", "Monthly"])
349
- if frequency == "Daily":
350
  min_dbu_monthly = 30 * min_dbu_single_run
351
  max_dbu_monthly = 30 * max_dbu_single_run
352
- elif frequency == "Weekly":
353
  min_dbu_monthly = 4 * min_dbu_single_run
354
  max_dbu_monthly = 4 * max_dbu_single_run
355
  else: # Monthly
@@ -400,7 +399,7 @@ if new_dataset_name or selected_dataset_name:
400
 
401
  # Disclaimer
402
  st.info("Disclaimer: This is only an estimation. Always monitor the job in Databricks to assess actual DBU consumption.")
403
-
404
  st.subheader("Select a table", divider="grey")
405
 
406
  # Fetching databases
 
345
  max_dbu_single_run = (2*X/3) * (1 + 10)
346
 
347
  # Estimate monthly DBU consumption based on frequency
348
+ if freq_options == "1 day":
 
349
  min_dbu_monthly = 30 * min_dbu_single_run
350
  max_dbu_monthly = 30 * max_dbu_single_run
351
+ elif freq_options == "1 week":
352
  min_dbu_monthly = 4 * min_dbu_single_run
353
  max_dbu_monthly = 4 * max_dbu_single_run
354
  else: # Monthly
 
399
 
400
  # Disclaimer
401
  st.info("Disclaimer: This is only an estimation. Always monitor the job in Databricks to assess actual DBU consumption.")
402
+
403
  st.subheader("Select a table", divider="grey")
404
 
405
  # Fetching databases