jeronimo9 commited on
Commit
b9732d3
·
verified ·
1 Parent(s): e8af1b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -17
app.py CHANGED
@@ -10,20 +10,34 @@ BRAND_COLORS = {
10
  'light_gray': '#ECF0F6'
11
  }
12
 
13
- # Default compliance data
14
  default_compliance_df = pd.DataFrame({
15
  "Regulation": [
16
- "SEC Reg S-P (Privacy)",
17
- "GLBA (Financial)",
18
- "FINRA Rules",
19
- "Bank Secrecy Act",
20
- "Dodd-Frank Act"
 
 
 
 
 
 
 
 
 
 
21
  ],
22
- "Expected Violations": [1, 1, 1, 1, 1],
23
- "Penalty": [100000, 100000, 150000, 200000, 250000],
24
- "Attorney Cost": [50000, 45000, 75000, 100000, 125000]
 
 
 
 
 
25
  })
26
-
27
  CUSTOM_CSS = """
28
  .gradio-container {
29
  max-width: 1200px !important;
@@ -354,7 +368,7 @@ def create_app():
354
  )
355
  estimated_api_calls = gr.Number(
356
  label="Estimated Monthly API Calls",
357
- value=10000,
358
  elem_classes="number-input",
359
  visible=False
360
  )
@@ -380,7 +394,7 @@ def create_app():
380
  with gr.Tab("Organization"):
381
  num_employees = gr.Slider(
382
  label="Number of Employees",
383
- minimum=1, maximum=1000, value=215,
384
  info="How many employees will use the solution?"
385
  )
386
  hours_saved_per_week = gr.Slider(
@@ -397,7 +411,7 @@ def create_app():
397
  with gr.Tab("Build Costs"):
398
  initial_platform_cost = gr.Number(
399
  label="Initial Development Cost ($)",
400
- value=100000
401
  )
402
  with gr.Row():
403
  num_ai_hires = gr.Number(
@@ -406,16 +420,16 @@ def create_app():
406
  )
407
  avg_salary = gr.Number(
408
  label="Average Annual Salary ($)",
409
- value=150000
410
  )
411
  with gr.Row():
412
  ai_maintenance_cost = gr.Number(
413
  label="Annual Maintenance ($)",
414
- value=20000
415
  )
416
  ai_security_cost = gr.Number(
417
  label="Security & Compliance ($)",
418
- value=10000
419
  )
420
 
421
  with gr.Tab("Compliance"):
@@ -428,7 +442,7 @@ def create_app():
428
  with gr.Tab("Benefits"):
429
  revenue_increase = gr.Number(
430
  label="Estimated Annual Revenue Increase ($)",
431
- value=50000,
432
  info="Projected revenue growth"
433
  )
434
 
 
10
  'light_gray': '#ECF0F6'
11
  }
12
 
13
+
14
  default_compliance_df = pd.DataFrame({
15
  "Regulation": [
16
+ "SEC Regulation S-P (Privacy)",
17
+ "GLBA (Gramm-Leach-Bliley Act)",
18
+ "FINRA Rule 2210 (Communications)",
19
+ "SEC Rule 17a-4 (Records Retention)",
20
+ "BSA/AML Compliance",
21
+ "Regulation S-ID (Identity Theft Red Flags)"
22
+ ],
23
+ "Expected Violations": [1, 1, 1, 1, 1, 1],
24
+ "Penalty": [
25
+ 1000000, # SEC Reg S-P: Up to $1M per violation
26
+ 100000, # GLBA: Up to $100K per violation
27
+ 250000, # FINRA Rule 2210: Up to $250K per violation
28
+ 500000, # SEC 17a-4: Up to $500K per violation
29
+ 25000, # BSA/AML: $25K per day
30
+ 3640, # Reg S-ID: $3,640 per violation (2024 adjusted)
31
  ],
32
+ "Attorney Cost": [
33
+ 75000, # Complex privacy cases
34
+ 50000, # GLBA compliance
35
+ 40000, # Communications review
36
+ 60000, # Records management
37
+ 80000, # AML program review
38
+ 35000 # Identity theft program
39
+ ]
40
  })
 
41
  CUSTOM_CSS = """
42
  .gradio-container {
43
  max-width: 1200px !important;
 
368
  )
369
  estimated_api_calls = gr.Number(
370
  label="Estimated Monthly API Calls",
371
+ value=100000,
372
  elem_classes="number-input",
373
  visible=False
374
  )
 
394
  with gr.Tab("Organization"):
395
  num_employees = gr.Slider(
396
  label="Number of Employees",
397
+ minimum=1, maximum=5000, value=215,
398
  info="How many employees will use the solution?"
399
  )
400
  hours_saved_per_week = gr.Slider(
 
411
  with gr.Tab("Build Costs"):
412
  initial_platform_cost = gr.Number(
413
  label="Initial Development Cost ($)",
414
+ value=1000000
415
  )
416
  with gr.Row():
417
  num_ai_hires = gr.Number(
 
420
  )
421
  avg_salary = gr.Number(
422
  label="Average Annual Salary ($)",
423
+ value=200000
424
  )
425
  with gr.Row():
426
  ai_maintenance_cost = gr.Number(
427
  label="Annual Maintenance ($)",
428
+ value=500000
429
  )
430
  ai_security_cost = gr.Number(
431
  label="Security & Compliance ($)",
432
+ value=250000
433
  )
434
 
435
  with gr.Tab("Compliance"):
 
442
  with gr.Tab("Benefits"):
443
  revenue_increase = gr.Number(
444
  label="Estimated Annual Revenue Increase ($)",
445
+ value=500000,
446
  info="Projected revenue growth"
447
  )
448