Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,11 +101,12 @@ def find_query(query,sen,nouns):
|
|
| 101 |
noun_list.append(n[0])
|
| 102 |
nouns_l=list(nouns.keys())
|
| 103 |
for nn in nouns_l:
|
| 104 |
-
|
| 105 |
-
if
|
| 106 |
-
noun_box
|
| 107 |
-
|
| 108 |
-
|
|
|
|
| 109 |
return noun_box
|
| 110 |
|
| 111 |
with gr.Blocks() as app:
|
|
|
|
| 101 |
noun_list.append(n[0])
|
| 102 |
nouns_l=list(nouns.keys())
|
| 103 |
for nn in nouns_l:
|
| 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:
|