Omnibus commited on
Commit
33350ec
·
verified ·
1 Parent(s): fbed6bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -228,7 +228,7 @@ with gr.Blocks() as app:
228
  search_btn=gr.Button("Search")
229
  search_btn2=gr.Button("Search2")
230
  out_box=gr.Textbox(label="Results")
231
- sen_box=gr.JSON(label="Sentences")
232
  with gr.Row():
233
  with gr.Column(scale=2):
234
  sen=gr.JSON(label="Sentences")
@@ -236,7 +236,7 @@ with gr.Blocks() as app:
236
  nouns=gr.JSON(label="Nouns")
237
  search_btn.click(find_query,[query,sen,nouns],[out_box,sen_box])
238
  search_btn2.click(find_query_sen,[query,sen,nouns],[out_box])
239
- btn.click(sort_doc,[inp],[sen,nouns])
240
  app.launch()
241
 
242
 
 
228
  search_btn=gr.Button("Search")
229
  search_btn2=gr.Button("Search2")
230
  out_box=gr.Textbox(label="Results")
231
+ sen_box=gr.Textbox(label="Sentences")
232
  with gr.Row():
233
  with gr.Column(scale=2):
234
  sen=gr.JSON(label="Sentences")
 
236
  nouns=gr.JSON(label="Nouns")
237
  search_btn.click(find_query,[query,sen,nouns],[out_box,sen_box])
238
  search_btn2.click(find_query_sen,[query,sen,nouns],[out_box])
239
+ btn.click(sort_doc,[inp],[sen,out_box])
240
  app.launch()
241
 
242