Ivan Kudryakov commited on
Commit
74bccd4
·
1 Parent(s): 1fb7768
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -8,8 +8,8 @@ import matplotlib.pyplot as plt
8
  access_token = '24001214633baa923e4caf1fba8da62847aa8df94b3b041d40b54186eabd6a16a81962c9bbbd02f52082a'
9
 
10
 
11
- x = st.slider('Select a value')
12
- st.write(x, 'squared is', x * x)
13
 
14
 
15
  api_version = '5.131'
@@ -17,9 +17,9 @@ my_id = '167196653'
17
  read_id = st.text_input("Type interested vk id or write \"0\" to use default: ")
18
  if read_id != '0':
19
  my_id = read_id
20
- print("my_id changed", my_id)
21
  friend_num = int(st.text_input("Type how many friends you want to show or write \"0\" show all: "))
22
-
23
 
24
  params_for_users_get = {'user_ids': my_id,
25
  'access_token': access_token,
@@ -97,7 +97,7 @@ nx.draw_networkx_nodes(G, pos, node_size=50)
97
  nx.draw_networkx_edges(G, pos, edge_color='b')
98
  # plt.show()
99
 
100
- st.pyplot(plt)
101
 
102
 
103
 
 
8
  access_token = '24001214633baa923e4caf1fba8da62847aa8df94b3b041d40b54186eabd6a16a81962c9bbbd02f52082a'
9
 
10
 
11
+ #x = st.slider('Select a value')
12
+ #st.write(x, 'squared is', x * x)
13
 
14
 
15
  api_version = '5.131'
 
17
  read_id = st.text_input("Type interested vk id or write \"0\" to use default: ")
18
  if read_id != '0':
19
  my_id = read_id
20
+ st.write("my_id changed", my_id)
21
  friend_num = int(st.text_input("Type how many friends you want to show or write \"0\" show all: "))
22
+ plt.write("wait about a minute we could do only 3 request per second")
23
 
24
  params_for_users_get = {'user_ids': my_id,
25
  'access_token': access_token,
 
97
  nx.draw_networkx_edges(G, pos, edge_color='b')
98
  # plt.show()
99
 
100
+ #st.pyplot(plt)
101
 
102
 
103