Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
108 |
else:
|
109 |
-
noun_box[str(nl)]=[
|
|
|
|
|
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:
|