Update app.py
Browse files
app.py
CHANGED
|
@@ -43,12 +43,12 @@ def predict_bangla_sentence(sentence):
|
|
| 43 |
# Create Gradio UI
|
| 44 |
iface = gr.Interface(
|
| 45 |
fn=predict_bangla_sentence,
|
| 46 |
-
inputs=gr.Textbox(lines=2, placeholder="Enter a
|
| 47 |
outputs=gr.Textbox(label="Output"),
|
| 48 |
-
title="
|
| 49 |
description = (
|
| 50 |
"This model was trained using a curated Bangla dataset by **TextLab RUET**. "
|
| 51 |
-
"It can classify sentences in various languages into five distinct categories: Assertive, Interrogative, Imperative, Optative, and Exclamatory. "
|
| 52 |
"Although it was fine-tuned on Bangla sentences, the model **XLM-R** (a multilingual transformer model based on the BERT architecture) uses **transfer learning** "
|
| 53 |
"to apply its knowledge from over 100 languages, enabling it to classify sentences in a wide variety of languages, including Bangla, English, Spanish, French, German, and more.\n\n"
|
| 54 |
|
|
|
|
| 43 |
# Create Gradio UI
|
| 44 |
iface = gr.Interface(
|
| 45 |
fn=predict_bangla_sentence,
|
| 46 |
+
inputs=gr.Textbox(lines=2, placeholder="Enter a sentence in any language...", label="Sentence"),
|
| 47 |
outputs=gr.Textbox(label="Output"),
|
| 48 |
+
title="Multilingual Sentence Classifier",
|
| 49 |
description = (
|
| 50 |
"This model was trained using a curated Bangla dataset by **TextLab RUET**. "
|
| 51 |
+
"It can classify sentences in various languages into five distinct categories: Assertive, Interrogative, Imperative, Optative, and Exclamatory. \n\n"
|
| 52 |
"Although it was fine-tuned on Bangla sentences, the model **XLM-R** (a multilingual transformer model based on the BERT architecture) uses **transfer learning** "
|
| 53 |
"to apply its knowledge from over 100 languages, enabling it to classify sentences in a wide variety of languages, including Bangla, English, Spanish, French, German, and more.\n\n"
|
| 54 |
|