f64 commited on
Commit
929634a
·
1 Parent(s): c05f881
.streamlit/secrets.toml ADDED
File without changes
.vscode/PythonImportHelper-v2-Completion.json DELETED
@@ -1,155 +0,0 @@
1
- [
2
- {
3
- "label": "streamlit",
4
- "kind": 6,
5
- "isExtraImport": true,
6
- "importPath": "streamlit",
7
- "description": "streamlit",
8
- "detail": "streamlit",
9
- "documentation": {}
10
- },
11
- {
12
- "label": "plotly.figure_factory",
13
- "kind": 6,
14
- "isExtraImport": true,
15
- "importPath": "plotly.figure_factory",
16
- "description": "plotly.figure_factory",
17
- "detail": "plotly.figure_factory",
18
- "documentation": {}
19
- },
20
- {
21
- "label": "plotly.graph_objs",
22
- "kind": 6,
23
- "isExtraImport": true,
24
- "importPath": "plotly.graph_objs",
25
- "description": "plotly.graph_objs",
26
- "detail": "plotly.graph_objs",
27
- "documentation": {}
28
- },
29
- {
30
- "label": "messages",
31
- "kind": 5,
32
- "importPath": "pages.0_Chat",
33
- "description": "pages.0_Chat",
34
- "peekOfCode": "messages = st.container(height=300)\nif prompt := st.chat_input(\"Спрашивайте тут : \"):\n messages.chat_message(\"user\").write(prompt)\n messages.chat_message(\"boss\").write(f\">>> {prompt[::-1]}\") # assistant",
35
- "detail": "pages.0_Chat",
36
- "documentation": {}
37
- },
38
- {
39
- "label": "n",
40
- "kind": 5,
41
- "importPath": "pages.6_Plotly",
42
- "description": "pages.6_Plotly",
43
- "peekOfCode": "n = 80 # 200\n# Add histogram data\nx1 = np.random.randn(n) # - 2\nx2 = np.random.randn(n)\nx3 = np.random.randn(n) # + 2\nx4 = np.random.randn(n)\nfigure = {\n \"data\": [go.Scatter3d(z=x1, y=x2, x=x3, mode='markers',\n marker=dict(size=7, color=x4, colorscale='Viridis', opacity=0.5)\n )],",
44
- "detail": "pages.6_Plotly",
45
- "documentation": {}
46
- },
47
- {
48
- "label": "x1",
49
- "kind": 5,
50
- "importPath": "pages.6_Plotly",
51
- "description": "pages.6_Plotly",
52
- "peekOfCode": "x1 = np.random.randn(n) # - 2\nx2 = np.random.randn(n)\nx3 = np.random.randn(n) # + 2\nx4 = np.random.randn(n)\nfigure = {\n \"data\": [go.Scatter3d(z=x1, y=x2, x=x3, mode='markers',\n marker=dict(size=7, color=x4, colorscale='Viridis', opacity=0.5)\n )],\n \"layout\": go.Layout(margin=dict(l=0, r=0, b=0, t=0), uirevision='foo') # height=100\n}",
53
- "detail": "pages.6_Plotly",
54
- "documentation": {}
55
- },
56
- {
57
- "label": "x2",
58
- "kind": 5,
59
- "importPath": "pages.6_Plotly",
60
- "description": "pages.6_Plotly",
61
- "peekOfCode": "x2 = np.random.randn(n)\nx3 = np.random.randn(n) # + 2\nx4 = np.random.randn(n)\nfigure = {\n \"data\": [go.Scatter3d(z=x1, y=x2, x=x3, mode='markers',\n marker=dict(size=7, color=x4, colorscale='Viridis', opacity=0.5)\n )],\n \"layout\": go.Layout(margin=dict(l=0, r=0, b=0, t=0), uirevision='foo') # height=100\n}\nst.plotly_chart(figure)",
62
- "detail": "pages.6_Plotly",
63
- "documentation": {}
64
- },
65
- {
66
- "label": "x3",
67
- "kind": 5,
68
- "importPath": "pages.6_Plotly",
69
- "description": "pages.6_Plotly",
70
- "peekOfCode": "x3 = np.random.randn(n) # + 2\nx4 = np.random.randn(n)\nfigure = {\n \"data\": [go.Scatter3d(z=x1, y=x2, x=x3, mode='markers',\n marker=dict(size=7, color=x4, colorscale='Viridis', opacity=0.5)\n )],\n \"layout\": go.Layout(margin=dict(l=0, r=0, b=0, t=0), uirevision='foo') # height=100\n}\nst.plotly_chart(figure)\n# 1",
71
- "detail": "pages.6_Plotly",
72
- "documentation": {}
73
- },
74
- {
75
- "label": "x4",
76
- "kind": 5,
77
- "importPath": "pages.6_Plotly",
78
- "description": "pages.6_Plotly",
79
- "peekOfCode": "x4 = np.random.randn(n)\nfigure = {\n \"data\": [go.Scatter3d(z=x1, y=x2, x=x3, mode='markers',\n marker=dict(size=7, color=x4, colorscale='Viridis', opacity=0.5)\n )],\n \"layout\": go.Layout(margin=dict(l=0, r=0, b=0, t=0), uirevision='foo') # height=100\n}\nst.plotly_chart(figure)\n# 1\n#hist_data = [x1, x2, x3]",
80
- "detail": "pages.6_Plotly",
81
- "documentation": {}
82
- },
83
- {
84
- "label": "figure",
85
- "kind": 5,
86
- "importPath": "pages.6_Plotly",
87
- "description": "pages.6_Plotly",
88
- "peekOfCode": "figure = {\n \"data\": [go.Scatter3d(z=x1, y=x2, x=x3, mode='markers',\n marker=dict(size=7, color=x4, colorscale='Viridis', opacity=0.5)\n )],\n \"layout\": go.Layout(margin=dict(l=0, r=0, b=0, t=0), uirevision='foo') # height=100\n}\nst.plotly_chart(figure)\n# 1\n#hist_data = [x1, x2, x3]\n#group_labels = ['Group 1', 'Group 2', 'Group 3']",
89
- "detail": "pages.6_Plotly",
90
- "documentation": {}
91
- },
92
- {
93
- "label": "#hist_data",
94
- "kind": 5,
95
- "importPath": "pages.6_Plotly",
96
- "description": "pages.6_Plotly",
97
- "peekOfCode": "#hist_data = [x1, x2, x3]\n#group_labels = ['Group 1', 'Group 2', 'Group 3']\n#fig = ff.create_distplot(hist_data, group_labels, bin_size=[.1, .25, .5])\n#st.plotly_chart(fig, use_container_width=True)",
98
- "detail": "pages.6_Plotly",
99
- "documentation": {}
100
- },
101
- {
102
- "label": "#group_labels",
103
- "kind": 5,
104
- "importPath": "pages.6_Plotly",
105
- "description": "pages.6_Plotly",
106
- "peekOfCode": "#group_labels = ['Group 1', 'Group 2', 'Group 3']\n#fig = ff.create_distplot(hist_data, group_labels, bin_size=[.1, .25, .5])\n#st.plotly_chart(fig, use_container_width=True)",
107
- "detail": "pages.6_Plotly",
108
- "documentation": {}
109
- },
110
- {
111
- "label": "#fig",
112
- "kind": 5,
113
- "importPath": "pages.6_Plotly",
114
- "description": "pages.6_Plotly",
115
- "peekOfCode": "#fig = ff.create_distplot(hist_data, group_labels, bin_size=[.1, .25, .5])\n#st.plotly_chart(fig, use_container_width=True)",
116
- "detail": "pages.6_Plotly",
117
- "documentation": {}
118
- },
119
- {
120
- "label": "df",
121
- "kind": 5,
122
- "importPath": "pages.9_Таблица_результатов",
123
- "description": "pages.9_Таблица_результатов",
124
- "peekOfCode": "df = pd.DataFrame(np.random.randn(10, 5), columns=(\"col %d\" % i for i in range(5)))\nst.table(df)",
125
- "detail": "pages.9_Таблица_результатов",
126
- "documentation": {}
127
- },
128
- {
129
- "label": "df",
130
- "kind": 5,
131
- "importPath": "app",
132
- "description": "app",
133
- "peekOfCode": "df = pd.DataFrame([\n {\"command\": \"st.selectbox\", \"rating\": 4, \"is_widget\": True},\n {\"command\": \"st.balloons\", \"rating\": 5, \"is_widget\": False},\n {\"command\": \"st.time_input\", \"rating\": 3, \"is_widget\": True},\n])\nedited_df = st.data_editor(df, num_rows=\"dynamic\")\nfavorite_command = edited_df.loc[edited_df[\"rating\"].idxmax()][\"command\"]\nst.markdown(f\"Your favorite command is **{favorite_command}** 🎚️\")",
134
- "detail": "app",
135
- "documentation": {}
136
- },
137
- {
138
- "label": "edited_df",
139
- "kind": 5,
140
- "importPath": "app",
141
- "description": "app",
142
- "peekOfCode": "edited_df = st.data_editor(df, num_rows=\"dynamic\")\nfavorite_command = edited_df.loc[edited_df[\"rating\"].idxmax()][\"command\"]\nst.markdown(f\"Your favorite command is **{favorite_command}** 🎚️\")",
143
- "detail": "app",
144
- "documentation": {}
145
- },
146
- {
147
- "label": "favorite_command",
148
- "kind": 5,
149
- "importPath": "app",
150
- "description": "app",
151
- "peekOfCode": "favorite_command = edited_df.loc[edited_df[\"rating\"].idxmax()][\"command\"]\nst.markdown(f\"Your favorite command is **{favorite_command}** 🎚️\")",
152
- "detail": "app",
153
- "documentation": {}
154
- }
155
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
pages/{7_итоги.py → 4_просмотр_CSV.py} RENAMED
@@ -2,23 +2,20 @@ import os
2
  import streamlit as st, pandas as pd, numpy as np
3
  import my_static_methods as my_stm
4
 
5
- #st.sidebar.title("Пока плохо")
6
  #st.sidebar.info("три CSV")
7
- st.sidebar.markdown("*** \n итоги ⚜️")
8
  # remove decoration and popup menu button at top
9
  st.markdown("<style> header[data-testid='stHeader'] { display:none } div[data-testid='stAppViewBlockContainer'] { padding:1em } </style>", unsafe_allow_html=True)
10
 
11
- col1, col2 = st.columns(2)
12
- #col1.metric("Temperature", "70 °F", "1.2 °F")
13
- #col2.metric("Wind", "9 mph", "-8%")
14
- #col3.metric("Humidity", "86%", "4%")
15
 
16
  REPO_ID = "f64k/gaziev"
17
  lstTestFiles = my_stm.list_files_hf(REPO_ID)
18
- col1.write(lstTestFiles)
19
  dictXYZV = my_stm.load_gaziev_from_hf(REPO_ID, lstTestFiles)
20
 
21
  key_xyz = st.selectbox("Выберите файл данных для просмотра таблицы и точек", dictXYZV.keys())
 
22
  if key_xyz:
23
  df_xyz = dictXYZV[key_xyz]
24
 
 
2
  import streamlit as st, pandas as pd, numpy as np
3
  import my_static_methods as my_stm
4
 
5
+ #st.sidebar.title("⚜️")
6
  #st.sidebar.info("три CSV")
7
+ st.sidebar.markdown("*** сохраненные \n таблицы \n CSV 💽")
8
  # remove decoration and popup menu button at top
9
  st.markdown("<style> header[data-testid='stHeader'] { display:none } div[data-testid='stAppViewBlockContainer'] { padding:1em } </style>", unsafe_allow_html=True)
10
 
11
+ #col1.metric("Temperature", "70 °F", "1.2 °F") #col2.metric("Wind", "9 mph", "-8%") #col3.metric("Humidity", "86%", "4%")
 
 
 
12
 
13
  REPO_ID = "f64k/gaziev"
14
  lstTestFiles = my_stm.list_files_hf(REPO_ID)
 
15
  dictXYZV = my_stm.load_gaziev_from_hf(REPO_ID, lstTestFiles)
16
 
17
  key_xyz = st.selectbox("Выберите файл данных для просмотра таблицы и точек", dictXYZV.keys())
18
+ col1, col2 = st.columns(2)
19
  if key_xyz:
20
  df_xyz = dictXYZV[key_xyz]
21
 
static/text.txt ADDED
File without changes