Omnibus commited on
Commit
6457f6e
·
verified ·
1 Parent(s): 3dc7ae1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=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,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",value=text,lines=10)
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")