Walid-Ahmed commited on
Commit
b4b7270
โ€ข
1 Parent(s): 2ddc912

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- # Predefined example sentences
 
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