Omnibus commited on
Commit
f335638
·
verified ·
1 Parent(s): 5464361

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
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
- if cnt == noun_cnt-1:
95
- print('done')
96
- go=False
97
- print(list(noun_list.keys())[-1])
98
- else:
99
- cnt+=1
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