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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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="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. "
@@ -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)