Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -78,6 +78,7 @@ def get_nouns(text=text,steps=1):
|
|
78 |
key_cnt=len(sen_list)
|
79 |
noun_cnt=len(noun_box)
|
80 |
print(key_cnt)
|
|
|
81 |
|
82 |
cnt=0
|
83 |
go=True
|
@@ -91,12 +92,12 @@ def get_nouns(text=text,steps=1):
|
|
91 |
#for iii in
|
92 |
noun_list[f'{control_val[i]}{control_char[ii]}']=sent
|
93 |
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
return json_object,noun_list
|
101 |
|
102 |
|
|
|
78 |
key_cnt=len(sen_list)
|
79 |
noun_cnt=len(noun_box)
|
80 |
print(key_cnt)
|
81 |
+
print(noun_cnt)
|
82 |
|
83 |
cnt=0
|
84 |
go=True
|
|
|
92 |
#for iii in
|
93 |
noun_list[f'{control_val[i]}{control_char[ii]}']=sent
|
94 |
|
95 |
+
if cnt == noun_cnt-1:
|
96 |
+
print('done')
|
97 |
+
go=False
|
98 |
+
print(list(noun_list.keys())[-1])
|
99 |
+
else:
|
100 |
+
cnt+=1
|
101 |
return json_object,noun_list
|
102 |
|
103 |
|