Spaces:
Runtime error
Runtime error
musfiqdehan
commited on
Commit
•
c0bb930
1
Parent(s):
d4a2937
Remove commented out code for Gradio interface
Browse files
app.py
CHANGED
@@ -23,32 +23,6 @@ def bn_postagger(src, translator, model_name, tagger):
|
|
23 |
return tgt_base, result, pos_accuracy
|
24 |
|
25 |
|
26 |
-
# Define the Gradio interface
|
27 |
-
# demo = gr.Interface(
|
28 |
-
# fn=bn_postagger,
|
29 |
-
# inputs=[
|
30 |
-
# gr.Textbox(label="Enter Bangla Sentence", placeholder="বাংলা বাক্য লিখুন"),
|
31 |
-
# gr.Dropdown(["Google", "BanglaNMT", "MyMemory"], label="Select a Translator"),
|
32 |
-
# gr.Dropdown(["spaCy", "NLTK", "Flair", "TextBlob"], label="Select a PoS Tagger")
|
33 |
-
# ],
|
34 |
-
# outputs= [
|
35 |
-
# gr.Textbox(label="English Translation"),
|
36 |
-
# RichTextbox(label="PoS Tags"),
|
37 |
-
# gr.Textbox(label="Overall PoS Tagging Accuracy")
|
38 |
-
# ],
|
39 |
-
# live=False,
|
40 |
-
# title="Bangla PoS Taggers",
|
41 |
-
# theme='',
|
42 |
-
# examples=[
|
43 |
-
# ["বাংলাদেশ দক্ষিণ এশিয়ার একটি সার্বভৌম রাষ্ট্র।"],
|
44 |
-
# ["বাংলাদেশের সংবিধানিক নাম কি?"],
|
45 |
-
# ["বাংলাদেশের সাংবিধানিক নাম গণপ্রজাতন্ত্রী বাংলাদেশ।"],
|
46 |
-
# ["তিনজনের কেউই বাবার পথ ধরে প্রযুক্তি দুনিয়ায় হাঁটেননি।"],
|
47 |
-
# ["বিশ্বের আরও একটি সেরা ক্লাব।"]
|
48 |
-
|
49 |
-
# ]
|
50 |
-
# )
|
51 |
-
|
52 |
with gr.Blocks(css="styles.css") as demo:
|
53 |
gr.HTML("<h1>Bangla PoS Taggers</h1>")
|
54 |
gr.HTML("<p>Parts of Speech (PoS) Tagging of Bangla Sentence using Bangla-English <strong>Word Alignment</strong></p>")
|
|
|
23 |
return tgt_base, result, pos_accuracy
|
24 |
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
with gr.Blocks(css="styles.css") as demo:
|
27 |
gr.HTML("<h1>Bangla PoS Taggers</h1>")
|
28 |
gr.HTML("<p>Parts of Speech (PoS) Tagging of Bangla Sentence using Bangla-English <strong>Word Alignment</strong></p>")
|