JUNGU commited on
Commit
5449034
ยท
1 Parent(s): 3901252

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
+