aliabd HF staff commited on
Commit
2080de5
1 Parent(s): 056649e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -10,7 +10,12 @@ def predict(inp_1, inp_2):
10
  return {"nubia_score": features["nubia_score"]}, labels
11
 
12
  title = "NUBIA"
13
- description = """## A **N**e**u**ral **B**ased **I**nterchangeability **A**ssessor.
 
 
 
 
 
14
  This is a demo of NUBIA: a SoTA evaluation metric for text generation. Simply input your texts (or click one of the examples to load them) and the model will compute score for how interchangeable they are.
15
  Check out the [paper](https://arxiv.org/abs/2004.14667), [blog post](https://wl-research.github.io/blog/), [FAQ](https://github.com/wl-research/nubia/blob/master/FAQ.md) and [demo colab notebook](https://colab.research.google.com/drive/1_K8pOB8fRRnkBPwlcmvUNHgCr4ur8rFg).
16
  """
@@ -19,6 +24,9 @@ outputs = [gradio.outputs.Label(label="Interchangeability Score"), gradio.output
19
  css =""".gradio-bg[theme=huggingface] .gradio-interface .output-label .confidence {
20
  color: white !important;
21
  }
 
 
 
22
  """
23
  examples = [
24
  ["This car is expensive! I can't buy it.", "That automobile costs a fortune! Purchasing it? Impossible!"],
 
10
  return {"nubia_score": features["nubia_score"]}, labels
11
 
12
  title = "NUBIA"
13
+ description = """
14
+ <p>
15
+ <center>
16
+ ## A **N**e**u**ral **B**ased **I**nterchangeability **A**ssessor.
17
+ </center>
18
+ </p>
19
  This is a demo of NUBIA: a SoTA evaluation metric for text generation. Simply input your texts (or click one of the examples to load them) and the model will compute score for how interchangeable they are.
20
  Check out the [paper](https://arxiv.org/abs/2004.14667), [blog post](https://wl-research.github.io/blog/), [FAQ](https://github.com/wl-research/nubia/blob/master/FAQ.md) and [demo colab notebook](https://colab.research.google.com/drive/1_K8pOB8fRRnkBPwlcmvUNHgCr4ur8rFg).
21
  """
 
24
  css =""".gradio-bg[theme=huggingface] .gradio-interface .output-label .confidence {
25
  color: white !important;
26
  }
27
+ .description a {
28
+ text-decoration: underline !important;
29
+ }
30
  """
31
  examples = [
32
  ["This car is expensive! I can't buy it.", "That automobile costs a fortune! Purchasing it? Impossible!"],