Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,12 +3,13 @@ import requests
|
|
3 |
import bs4
|
4 |
|
5 |
def sort_doc(in_list,steps_in=8,control=None):
|
|
|
6 |
text=str(in_list)
|
7 |
|
8 |
########################################
|
9 |
sen_list=in_list
|
10 |
######################################
|
11 |
-
key_cnt=len(
|
12 |
print(key_cnt)
|
13 |
control_char=list(control_json['control'])
|
14 |
char_len=len(control_char)
|
@@ -55,7 +56,7 @@ def sort_doc(in_list,steps_in=8,control=None):
|
|
55 |
|
56 |
|
57 |
if go:
|
58 |
-
for i, ea in enumerate(
|
59 |
if go:
|
60 |
if cnt > char_len-1:
|
61 |
#print(step_cont_box)
|
@@ -76,7 +77,7 @@ def sort_doc(in_list,steps_in=8,control=None):
|
|
76 |
for iii,j in enumerate(step_cont_box):
|
77 |
print(j)
|
78 |
out_js = out_js+control_char[j]
|
79 |
-
sen_obj=
|
80 |
#sen_obj=proc_sen(sen_list,i)
|
81 |
|
82 |
#json_out[out_js]={'nouns':ea}
|
|
|
3 |
import bs4
|
4 |
|
5 |
def sort_doc(in_list,steps_in=8,control=None):
|
6 |
+
control_json={'control':'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ','char':'','leng':62}
|
7 |
text=str(in_list)
|
8 |
|
9 |
########################################
|
10 |
sen_list=in_list
|
11 |
######################################
|
12 |
+
key_cnt=len(in_list)
|
13 |
print(key_cnt)
|
14 |
control_char=list(control_json['control'])
|
15 |
char_len=len(control_char)
|
|
|
56 |
|
57 |
|
58 |
if go:
|
59 |
+
for i, ea in enumerate(in_list):
|
60 |
if go:
|
61 |
if cnt > char_len-1:
|
62 |
#print(step_cont_box)
|
|
|
77 |
for iii,j in enumerate(step_cont_box):
|
78 |
print(j)
|
79 |
out_js = out_js+control_char[j]
|
80 |
+
sen_obj=in_list[i]
|
81 |
#sen_obj=proc_sen(sen_list,i)
|
82 |
|
83 |
#json_out[out_js]={'nouns':ea}
|