Ayemos commited on
Commit
ef55e76
1 Parent(s): b3e527a

fix explanation

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -70,12 +70,12 @@ def main(input_text: str) -> Tuple[float, str]:
70
  if __name__ == "__main__":
71
  demo = gr.Interface(
72
  fn=main,
73
- title="Demo",
74
- description="The input text is highlighted based on readability. (The higher the surprisal, the more difficult to read.)",
75
  inputs=gr.inputs.Textbox(
76
  lines=5,
77
  label="Text",
78
- placeholder="input text here",
79
  ),
80
  outputs=[
81
  gr.Number(label="Surprisal"),
 
70
  if __name__ == "__main__":
71
  demo = gr.Interface(
72
  fn=main,
73
+ title="Demo: Highlight text based on eye movement",
74
+ description="Text is highlighted based on surprisal. (The higher the surprisal, the more difficult to read.)",
75
  inputs=gr.inputs.Textbox(
76
  lines=5,
77
  label="Text",
78
+ placeholder="Input text here",
79
  ),
80
  outputs=[
81
  gr.Number(label="Surprisal"),