augustander commited on
Commit
ee33a97
·
verified ·
1 Parent(s): 6dc65db

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ import numpy as np
19
  import streamlit as st
20
 
21
  # numpy 2.0 renamed trapz -> trapezoid; keep both code paths working
22
- _trapz = getattr(np, "trapezoid", np.trapz)
23
 
24
 
25
  ASSET_DIR = Path(__file__).resolve().parent / "assets"
 
19
  import streamlit as st
20
 
21
  # numpy 2.0 renamed trapz -> trapezoid; keep both code paths working
22
+ _trapz = np.trapezoid if hasattr(np, "trapezoid") else np.trapz
23
 
24
 
25
  ASSET_DIR = Path(__file__).resolve().parent / "assets"