g3casey commited on
Commit
ee07693
1 Parent(s): d662828

change to get_wiki of summarize

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -43,13 +43,12 @@ def get_wiki(search_term):
43
  # get_ocr()
44
  # model = AutoModelForSeq2SeqLM.from_pretrained("sgugger/my-awesome-model")
45
 
46
-
47
  out_sum_text = gr.Textbox(label='Summarized Text')
48
  out_orig_test_len = gr.Number(label='Original Text Length')
49
  out_sum_text_len = gr.Number(label='Summarized Text Length')
50
 
51
  iface = gr.Interface(fn=get_wiki,
52
- inputs=gr.Textbox(lines=2, placeholder="Wikipedia search term here..."),
53
  outputs=[out_sum_text,out_orig_test_len,out_sum_text_len]
54
  )
55
  iface.launch()
 
43
  # get_ocr()
44
  # model = AutoModelForSeq2SeqLM.from_pretrained("sgugger/my-awesome-model")
45
 
 
46
  out_sum_text = gr.Textbox(label='Summarized Text')
47
  out_orig_test_len = gr.Number(label='Original Text Length')
48
  out_sum_text_len = gr.Number(label='Summarized Text Length')
49
 
50
  iface = gr.Interface(fn=get_wiki,
51
+ inputs=gr.Textbox(lines=2, placeholder="Wikipedia search term here...", label='Search Term'),
52
  outputs=[out_sum_text,out_orig_test_len,out_sum_text_len]
53
  )
54
  iface.launch()