Ahsen Khaliq commited on
Commit
3b50e6e
1 Parent(s): 6f857a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -41,13 +41,19 @@ def inference(m1,m2):
41
  return b
42
 
43
  title = "Longformer-scico"
44
- description = "Gradio demo for Longformer-scico. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
 
 
 
 
 
 
45
  article = "<p style='text-align: center'><a href='https://openreview.net/forum?id=OFLbgUP04nC' target='_blank'>SciCo: Hierarchical Cross-Document Coreference for Scientific Concepts</a> | <a href='https://github.com/ariecattan/SciCo' target='_blank'>Github Repo</a></p>"
46
 
47
  examples = [["In this paper we present the results of an experiment in <m> automatic concept and definition extraction </m> from written sources of law using relatively simple natural methods.","This task is important since many natural language processing (NLP) problems, such as <m> information extraction </m>, summarization and dialogue."]]
48
  gr.Interface(
49
  inference,
50
- [gr.inputs.Textbox(label="Input1"),gr.inputs.Textbox(label="Input2")],
51
  gr.outputs.Label(label="Output"),
52
  title=title,
53
  description=description,
 
41
  return b
42
 
43
  title = "Longformer-scico"
44
+ description = """Gradio demo for Longformer-scico. To use it, simply add your text, or click one of the examples to load them. Read more at the links below. The model takes as input two mentions m1 and m2 with their corresponding context and outputs 4 scores:
45
+
46
+ 0: not related
47
+ 1: m1 and m2 corefer
48
+ 2: m1 is a parent of m2
49
+ 3: m1 is a child of m2."""
50
+
51
  article = "<p style='text-align: center'><a href='https://openreview.net/forum?id=OFLbgUP04nC' target='_blank'>SciCo: Hierarchical Cross-Document Coreference for Scientific Concepts</a> | <a href='https://github.com/ariecattan/SciCo' target='_blank'>Github Repo</a></p>"
52
 
53
  examples = [["In this paper we present the results of an experiment in <m> automatic concept and definition extraction </m> from written sources of law using relatively simple natural methods.","This task is important since many natural language processing (NLP) problems, such as <m> information extraction </m>, summarization and dialogue."]]
54
  gr.Interface(
55
  inference,
56
+ [gr.inputs.Textbox(label="m1"),gr.inputs.Textbox(label="m2")],
57
  gr.outputs.Label(label="Output"),
58
  title=title,
59
  description=description,