Spaces:
Runtime error
Runtime error
Walid-Ahmed
commited on
Commit
โข
b4b7270
1
Parent(s):
2ddc912
Update app.py
Browse files
app.py
CHANGED
@@ -25,10 +25,11 @@ model_choice = gr.Dropdown(choices=list(tokenizers.keys()), label="Select Tokeni
|
|
25 |
text_input = gr.Textbox(label="Enter a sentence to tokenize")
|
26 |
|
27 |
|
28 |
-
|
|
|
29 |
examples = [
|
30 |
-
["The quick brown fox jumps over the lazy dog."], # English sentence
|
31 |
-
["ุงููู
ุฑ ุฌู
ูู ูู ุงูุณู
ุงุก."] # Arabic sentence
|
32 |
]
|
33 |
|
34 |
# Set up the Gradio interface
|
|
|
25 |
text_input = gr.Textbox(label="Enter a sentence to tokenize")
|
26 |
|
27 |
|
28 |
+
|
29 |
+
# Predefined example sentences with the corresponding tokenizers
|
30 |
examples = [
|
31 |
+
["The quick brown fox jumps over the lazy dog.", "English - BERT (bert-base-uncased)"], # English sentence with English tokenizer
|
32 |
+
["ุงููู
ุฑ ุฌู
ูู ูู ุงูุณู
ุงุก.", "Arabic - CAMeL BERT (bert-base-arabic-camelbert-ca)"] # Arabic sentence with Arabic tokenizer
|
33 |
]
|
34 |
|
35 |
# Set up the Gradio interface
|