nahidmuntasir7 commited on
Commit
516748f
·
verified ·
1 Parent(s): 7543fbf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -45,12 +45,15 @@ iface = gr.Interface(
45
  fn=predict_bangla_sentence,
46
  inputs=gr.Textbox(lines=2, placeholder="Enter a Bangla sentence..."),
47
  outputs="text",
48
- title="Bangla Sentence Classifier",
49
  description = (
50
  "This model was trained using a curated Bangla dataset by **TextLab RUET**. "
51
- "It classifies Bangla sentences into five distinct categories: Assertive, Interrogative, Imperative, Optative, and Exclamatory "
52
- "using the **XLM-R** (a multilingual transformer model based on the BERT architecture).\n\n"
53
- "Enter a Bangla sentence below to see how our model interprets it!\n\n"
 
 
 
54
  "**Note**: While we strive for accuracy, the model may occasionally misclassify sentences due to dataset limitations. "
55
  "We apologize for any errors and appreciate your understanding."
56
  ),
 
45
  fn=predict_bangla_sentence,
46
  inputs=gr.Textbox(lines=2, placeholder="Enter a Bangla sentence..."),
47
  outputs="text",
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. "
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
+ "**Enter a sentence in any language below to see how our model interprets it!**\n\n"
56
+
57
  "**Note**: While we strive for accuracy, the model may occasionally misclassify sentences due to dataset limitations. "
58
  "We apologize for any errors and appreciate your understanding."
59
  ),