Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def proc_nouns(sen_list):
|
|
35 |
noun_list[str(nnn)]=[nn]
|
36 |
return noun_list
|
37 |
|
38 |
-
def get_nouns(text
|
39 |
control_len=control_json['leng']-steps
|
40 |
control_char=list(control_json['control'])
|
41 |
control_char_val=list(control_json['control'][:control_len])
|
@@ -142,7 +142,7 @@ def find_query(query,sen,nouns):
|
|
142 |
return noun_box,sen_box
|
143 |
|
144 |
with gr.Blocks() as app:
|
145 |
-
inp = gr.Textbox(label="Paste Text",
|
146 |
btn = gr.Button("Load Document")
|
147 |
with gr.Row():
|
148 |
query=gr.Textbox(label="Search query")
|
|
|
35 |
noun_list[str(nnn)]=[nn]
|
36 |
return noun_list
|
37 |
|
38 |
+
def get_nouns(text,steps=1):
|
39 |
control_len=control_json['leng']-steps
|
40 |
control_char=list(control_json['control'])
|
41 |
control_char_val=list(control_json['control'][:control_len])
|
|
|
142 |
return noun_box,sen_box
|
143 |
|
144 |
with gr.Blocks() as app:
|
145 |
+
inp = gr.Textbox(label="Paste Text",lines=10)
|
146 |
btn = gr.Button("Load Document")
|
147 |
with gr.Row():
|
148 |
query=gr.Textbox(label="Search query")
|