Omnibus commited on
Commit
2e26803
·
verified ·
1 Parent(s): 013a409

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -104,9 +104,12 @@ def find_query(query,sen,nouns):
104
  for nl in noun_list:
105
  if nl in nn:
106
  if nl in noun_box:
107
- noun_box[str(nl)].append(nouns[nn])
 
108
  else:
109
- noun_box[str(nl)]=[nouns[nn]]
 
 
110
  return noun_box
111
 
112
  with gr.Blocks() as app:
 
104
  for nl in noun_list:
105
  if nl in nn:
106
  if nl in noun_box:
107
+ for ea_n in nouns[nn]:
108
+ noun_box[str(nl)].append(ea_n)
109
  else:
110
+ noun_box[str(nl)]=[]
111
+ for ea_n in nouns[nn]:
112
+ noun_box[str(nl)].append(ea_n)
113
  return noun_box
114
 
115
  with gr.Blocks() as app: