ifw-arz commited on
Commit
f464d08
1 Parent(s): 72e2285
Files changed (1) hide show
  1. app.py +9 -17
app.py CHANGED
@@ -17,29 +17,21 @@ def main():
17
  except Exception as e:
18
  st.error(f"Error: {str(e)}")
19
 
 
20
 
21
- tab1, tab2 = st.tabs(["Import", "Analyse"])
22
-
23
- with tab1:
24
-
25
- if uploaded_file is not None:
26
-
27
- mittelwert = st.slider("Gleitender Mittelwert", 0, 1000, 0, 10)
28
-
29
- time_column = st.selectbox("Zeit auswählen", df.columns, index=0)
30
- data_column = st.selectbox("Daten auswählen", df.columns)
31
 
32
- if time_column == data_column:
33
- st.write("Zeit und Daten können nicht gleich sein")
34
 
 
 
35
 
36
- fig = plotly_plot(df, time_column, data_column, mittelwert)
37
- fig.update_layout(width = 1600, height = 600)
38
- st.plotly_chart(fig)
39
 
 
 
 
40
 
41
- with tab2:
42
- pass
43
 
44
  if __name__ == "__main__":
45
  main()
 
17
  except Exception as e:
18
  st.error(f"Error: {str(e)}")
19
 
20
+ if uploaded_file is not None:
21
 
22
+ mittelwert = st.slider("Gleitender Mittelwert", 0, 1000, 0, 10)
 
 
 
 
 
 
 
 
 
23
 
24
+ time_column = st.selectbox("Zeit auswählen", df.columns, index=0)
25
+ data_column = st.selectbox("Daten auswählen", df.columns)
26
 
27
+ if time_column == data_column:
28
+ st.write("Zeit und Daten können nicht gleich sein")
29
 
 
 
 
30
 
31
+ fig = plotly_plot(df, time_column, data_column, mittelwert)
32
+ fig.update_layout(width = 1600, height = 600)
33
+ st.plotly_chart(fig)
34
 
 
 
35
 
36
  if __name__ == "__main__":
37
  main()