fix explanation
Browse files
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="
|
75 |
inputs=gr.inputs.Textbox(
|
76 |
lines=5,
|
77 |
label="Text",
|
78 |
-
placeholder="
|
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"),
|