Update app.py
Browse files
app.py
CHANGED
|
@@ -6,9 +6,9 @@ import matplotlib.pyplot as plt
|
|
| 6 |
uploaded_file = st.file_uploader("Choose a CSV file", type="csv")
|
| 7 |
|
| 8 |
# ๋ฐ์ดํฐ ํ์ ํ๋ ์ ์ ํ
|
| 9 |
-
time_frame_options = ["1๋ถ", "5๋ถ", "10๋ถ", "30๋ถ", "60๋ถ"]
|
| 10 |
time_frame = st.selectbox("๋ฐ์ดํฐ ํ์ ํ๋ ์ ์ ํ:", time_frame_options)
|
| 11 |
-
time_frame_map = {"1๋ถ": 1, "5๋ถ": 5, "10๋ถ": 10, "30๋ถ": 30, "60๋ถ": 60}
|
| 12 |
time_frame_minutes = time_frame_map[time_frame]
|
| 13 |
|
| 14 |
if uploaded_file:
|
|
@@ -42,3 +42,4 @@ if uploaded_file:
|
|
| 42 |
ax_hsv.set_ylabel('Value')
|
| 43 |
ax_hsv.legend()
|
| 44 |
st.pyplot(fig_hsv)
|
|
|
|
|
|
| 6 |
uploaded_file = st.file_uploader("Choose a CSV file", type="csv")
|
| 7 |
|
| 8 |
# ๋ฐ์ดํฐ ํ์ ํ๋ ์ ์ ํ
|
| 9 |
+
time_frame_options = ["1์ด", "5์ด", "10์ด", "30์ด", "1๋ถ", "5๋ถ", "10๋ถ", "30๋ถ", "60๋ถ"]
|
| 10 |
time_frame = st.selectbox("๋ฐ์ดํฐ ํ์ ํ๋ ์ ์ ํ:", time_frame_options)
|
| 11 |
+
time_frame_map = {"1์ด": 1/60, "5์ด": 5/60, "10์ด": 10/60, "30์ด": 30/60, "1๋ถ": 1, "5๋ถ": 5, "10๋ถ": 10, "30๋ถ": 30, "60๋ถ": 60}
|
| 12 |
time_frame_minutes = time_frame_map[time_frame]
|
| 13 |
|
| 14 |
if uploaded_file:
|
|
|
|
| 42 |
ax_hsv.set_ylabel('Value')
|
| 43 |
ax_hsv.legend()
|
| 44 |
st.pyplot(fig_hsv)
|
| 45 |
+
|