elshehawy commited on
Commit
4621bb4
·
2 Parent(s): a89c063 b30a51f

before merge

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -49,7 +49,11 @@ def find_orgs(sentence, choice):
49
  org_list = []
50
  for ent in pipe(sentence):
51
  if ent['entity_group'] == 'ORG' and ent['word'] not in org_list:
 
52
  message += f'\n- {ent["word"]} \t- score: {ent["score"]}'
 
 
 
53
  org_list.append(ent['word'])
54
  return message
55
 
@@ -57,7 +61,6 @@ def find_orgs(sentence, choice):
57
  example = """
58
  My latest exclusive for The Hill : Conservative frustration over Republican efforts to force a House vote on reauthorizing the Export - Import Bank boiled over Wednesday during a contentious GOP meeting.
59
 
60
- Apple, Microsoft, and Google are big tech companies.
61
  """
62
  radio_btn = gr.Radio(choices=['GPT', 'iSemantics'], value='iSemantics', label='Available models', show_label=True)
63
  textbox = gr.Textbox(label="Enter your text", placeholder="", lines=4)
 
49
  org_list = []
50
  for ent in pipe(sentence):
51
  if ent['entity_group'] == 'ORG' and ent['word'] not in org_list:
52
+ <<<<<<< HEAD
53
  message += f'\n- {ent["word"]} \t- score: {ent["score"]}'
54
+ =======
55
+ message += f'\n- {ent["word"]}'# \t- score: {ent["score"]}'
56
+ >>>>>>> b30a51f302e550a9a30a4a8cf28eadaf6fd27e39
57
  org_list.append(ent['word'])
58
  return message
59
 
 
61
  example = """
62
  My latest exclusive for The Hill : Conservative frustration over Republican efforts to force a House vote on reauthorizing the Export - Import Bank boiled over Wednesday during a contentious GOP meeting.
63
 
 
64
  """
65
  radio_btn = gr.Radio(choices=['GPT', 'iSemantics'], value='iSemantics', label='Available models', show_label=True)
66
  textbox = gr.Textbox(label="Enter your text", placeholder="", lines=4)