browndw commited on
Commit
2623b38
·
1 Parent(s): 78d04e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -53,7 +53,7 @@ def get_entities(example):
53
  output.extend([(example[0:item["start"]], None)])
54
  output.extend([(example[item["start"]:item["end"]], item["entity_group"])])
55
  if (next_item!=None):
56
- ##verificar el tramo entre actual y siguiente
57
  if(item["end"]!=next_item["start"]):
58
  output.extend([(example[item["end"]:next_item["start"]], None)])
59
  i=i+1
@@ -67,5 +67,5 @@ def greet(name):
67
  return "Hello " + name + "!!"
68
 
69
  iface = gr.Interface(fn=get_entities, inputs="text", outputs=['highlight'], examples=[['Jaws is a splendidly shrewd cinematic equation which not only gives you one or two very nasty turns when you least expect them but, possibly more important, knows when to make you think another is coming without actually providing it.'],
70
- ['In order to understand how cyclic variations in turbulence intensities affect cycle-to-cycle variations in combustion, in-cylinder flow fields and turbulence need to be studied more closely.']], title="DocuScope Demo (BERT)",)
71
  iface.launch()
 
53
  output.extend([(example[0:item["start"]], None)])
54
  output.extend([(example[item["start"]:item["end"]], item["entity_group"])])
55
  if (next_item!=None):
56
+ ##check the span
57
  if(item["end"]!=next_item["start"]):
58
  output.extend([(example[item["end"]:next_item["start"]], None)])
59
  i=i+1
 
67
  return "Hello " + name + "!!"
68
 
69
  iface = gr.Interface(fn=get_entities, inputs="text", outputs=['highlight'], examples=[['Jaws is a splendidly shrewd cinematic equation which not only gives you one or two very nasty turns when you least expect them but, possibly more important, knows when to make you think another is coming without actually providing it.'],
70
+ ['In order to understand how cyclic variations in turbulence intensities affect cycle-to-cycle variations in combustion, in-cylinder flow fields and turbulence need to be studied more closely.']], title='DocuScope Demo (BERT)', description = 'This is one of a family of models trained on DocuScope. Click on one of the examples below and SUBMIT. Be sure to CLEAR the output before tagging a new submission.')
71
  iface.launch()