Update app.py
Browse files
app.py
CHANGED
|
@@ -44,12 +44,12 @@ def predict_bangla_sentence(sentence):
|
|
| 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
|
| 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 |
|
| 55 |
"**Note**: While we strive for accuracy, the model may occasionally misclassify sentences due to dataset limitations. "
|
|
|
|
| 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(lines=2, label="Output"), # Adjust lines here to match input box
|
| 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 |
|
| 55 |
"**Note**: While we strive for accuracy, the model may occasionally misclassify sentences due to dataset limitations. "
|