Add 3-class model
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from transformers import pipeline
|
|
5 |
title = "Automatic Readability Assessment of Texts in Spanish"
|
6 |
|
7 |
description = """
|
8 |
-
Is a text **complex** or **simple**? Can it be understood by someone learning Spanish with a **basic**, **intermediate** or **advanced** knowledge of the language
|
9 |
"""
|
10 |
|
11 |
article = """
|
@@ -62,8 +62,7 @@ iface = gr.Interface(
|
|
62 |
fn=predict,
|
63 |
inputs=[
|
64 |
gr.inputs.Textbox(lines=7, placeholder="Write a text in Spanish.", label="Text in Spanish"),
|
65 |
-
|
66 |
-
gr.inputs.Radio(choices=["simple or complex?"], type="index", label="Readability Levels"),
|
67 |
],
|
68 |
outputs=[
|
69 |
gr.outputs.Label(num_top_classes=3, label="Predicted Readability Level")
|
|
|
5 |
title = "Automatic Readability Assessment of Texts in Spanish"
|
6 |
|
7 |
description = """
|
8 |
+
Is a text **complex** or **simple**? Can it be understood by someone learning Spanish with a **basic**, **intermediate** or **advanced** knowledge of the language? Find out with our models below!
|
9 |
"""
|
10 |
|
11 |
article = """
|
|
|
62 |
fn=predict,
|
63 |
inputs=[
|
64 |
gr.inputs.Textbox(lines=7, placeholder="Write a text in Spanish.", label="Text in Spanish"),
|
65 |
+
gr.inputs.Radio(choices=["simple or complex?", "basic, intermediate, or advanced?"], type="index", label="Readability Levels"),
|
|
|
66 |
],
|
67 |
outputs=[
|
68 |
gr.outputs.Label(num_top_classes=3, label="Predicted Readability Level")
|