Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,6 @@ def get_nouns(text):
|
|
38 |
noun_list[noun].append(f'{a}{cont_list[b]}{cont_list[c]}{cont_list[d]}')
|
39 |
else:
|
40 |
noun_list[noun]=[f'{a}{cont_list[b]}{cont_list[c]}{cont_list[d]}']
|
41 |
-
noun_list.append({'nouns':})
|
42 |
if json_object[f'{a}{cont_list[b]}{cont_list[c]}{cont_list[d]}']=='ZNNN':
|
43 |
#if json_object[sen_list[cnt]]=='ZNNN':
|
44 |
#print ("Y")
|
@@ -68,7 +67,7 @@ def get_nouns(text):
|
|
68 |
#print(blob.noun_phrases) # WordList(['titular threat', 'blob',
|
69 |
# 'ultimate movie monster',
|
70 |
# 'amoeba-like mass', ...])
|
71 |
-
return json_object
|
72 |
|
73 |
|
74 |
with gr.Blocks() as app:
|
|
|
38 |
noun_list[noun].append(f'{a}{cont_list[b]}{cont_list[c]}{cont_list[d]}')
|
39 |
else:
|
40 |
noun_list[noun]=[f'{a}{cont_list[b]}{cont_list[c]}{cont_list[d]}']
|
|
|
41 |
if json_object[f'{a}{cont_list[b]}{cont_list[c]}{cont_list[d]}']=='ZNNN':
|
42 |
#if json_object[sen_list[cnt]]=='ZNNN':
|
43 |
#print ("Y")
|
|
|
67 |
#print(blob.noun_phrases) # WordList(['titular threat', 'blob',
|
68 |
# 'ultimate movie monster',
|
69 |
# 'amoeba-like mass', ...])
|
70 |
+
return json_object,noun_list
|
71 |
|
72 |
|
73 |
with gr.Blocks() as app:
|