Spaces:
Runtime error
Runtime error
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +4 -6
src/streamlit_app.py
CHANGED
|
@@ -76,18 +76,17 @@ def make_band(df, thickness=20):
|
|
| 76 |
human_band = make_band(df_human)
|
| 77 |
synth_band = make_band(df_synth)
|
| 78 |
|
| 79 |
-
|
|
|
|
| 80 |
|
| 81 |
human_interp = np.interp(
|
| 82 |
-
|
| 83 |
-
t_common = np.linspace(0, 1, COMMON_LEN),
|
| 84 |
df_human["t_norm"].values,
|
| 85 |
human_band[0]
|
| 86 |
)
|
| 87 |
|
| 88 |
synth_interp = np.interp(
|
| 89 |
-
|
| 90 |
-
t_common = np.linspace(0, 1, COMMON_LEN),
|
| 91 |
df_synth["t_norm"].values,
|
| 92 |
synth_band[0]
|
| 93 |
)
|
|
@@ -113,4 +112,3 @@ fig.update_layout(
|
|
| 113 |
)
|
| 114 |
|
| 115 |
st.plotly_chart(fig, use_container_width=True)
|
| 116 |
-
|
|
|
|
| 76 |
human_band = make_band(df_human)
|
| 77 |
synth_band = make_band(df_synth)
|
| 78 |
|
| 79 |
+
COMMON_LEN = 500
|
| 80 |
+
t_common = np.linspace(0, 1, COMMON_LEN)
|
| 81 |
|
| 82 |
human_interp = np.interp(
|
| 83 |
+
t_common,
|
|
|
|
| 84 |
df_human["t_norm"].values,
|
| 85 |
human_band[0]
|
| 86 |
)
|
| 87 |
|
| 88 |
synth_interp = np.interp(
|
| 89 |
+
t_common,
|
|
|
|
| 90 |
df_synth["t_norm"].values,
|
| 91 |
synth_band[0]
|
| 92 |
)
|
|
|
|
| 112 |
)
|
| 113 |
|
| 114 |
st.plotly_chart(fig, use_container_width=True)
|
|
|