Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ iface = gr.Interface(
|
|
| 46 |
fn=predict_bangla_sentence,
|
| 47 |
inputs=gr.Textbox(lines=2, placeholder="Enter a sentence in any language...", label="Sentence"),
|
| 48 |
outputs=gr.Textbox(lines=2, label="Output"),
|
| 49 |
-
title="Multilingual Sentence Classifier
|
| 50 |
description = (
|
| 51 |
"This model was trained using a curated Bangla dataset by **TextLab RUET**. "
|
| 52 |
"It can classify sentences in various languages into five distinct categories: Assertive, Interrogative, Imperative, Optative, and Exclamatory. \n\n"
|
|
@@ -57,18 +57,6 @@ iface = gr.Interface(
|
|
| 57 |
"**Enter a sentence in any language below to see how our model interprets it!** 🤖"
|
| 58 |
),
|
| 59 |
theme="compact",
|
| 60 |
-
css="""
|
| 61 |
-
.gradio-container {
|
| 62 |
-
display: flex;
|
| 63 |
-
justify-content: center;
|
| 64 |
-
align-items: center;
|
| 65 |
-
height: 100vh;
|
| 66 |
-
}
|
| 67 |
-
.gradio-title {
|
| 68 |
-
text-align: center;
|
| 69 |
-
font-size: 24px; /* Adjust font size if necessary */
|
| 70 |
-
}
|
| 71 |
-
"""
|
| 72 |
)
|
| 73 |
|
| 74 |
# Launch the Gradio app
|
|
|
|
| 46 |
fn=predict_bangla_sentence,
|
| 47 |
inputs=gr.Textbox(lines=2, placeholder="Enter a sentence in any language...", label="Sentence"),
|
| 48 |
outputs=gr.Textbox(lines=2, label="Output"),
|
| 49 |
+
title="Multilingual Sentence Classifier ⚡",
|
| 50 |
description = (
|
| 51 |
"This model was trained using a curated Bangla dataset by **TextLab RUET**. "
|
| 52 |
"It can classify sentences in various languages into five distinct categories: Assertive, Interrogative, Imperative, Optative, and Exclamatory. \n\n"
|
|
|
|
| 57 |
"**Enter a sentence in any language below to see how our model interprets it!** 🤖"
|
| 58 |
),
|
| 59 |
theme="compact",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
)
|
| 61 |
|
| 62 |
# Launch the Gradio app
|