Update app.py
Browse files
app.py
CHANGED
|
@@ -43,9 +43,9 @@ 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 Bangla sentence..."),
|
| 47 |
-
outputs="
|
| 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. "
|
|
@@ -61,4 +61,4 @@ iface = gr.Interface(
|
|
| 61 |
)
|
| 62 |
|
| 63 |
# Launch the Gradio app
|
| 64 |
-
iface.launch(share=True)
|
|
|
|
| 43 |
# Create Gradio UI
|
| 44 |
iface = gr.Interface(
|
| 45 |
fn=predict_bangla_sentence,
|
| 46 |
+
inputs=gr.Textbox(lines=2, placeholder="Enter a Bangla sentence...", label="Sentence"),
|
| 47 |
+
outputs=gr.Textbox(label="Output"),
|
| 48 |
+
title="Bangla 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. "
|
|
|
|
| 61 |
)
|
| 62 |
|
| 63 |
# Launch the Gradio app
|
| 64 |
+
iface.launch(share=True)
|