AkashDataScience commited on
Commit
fcbd881
·
1 Parent(s): 00b3eca

Adding new examples

Browse files
Files changed (1) hide show
  1. app.py +15 -3
app.py CHANGED
@@ -26,9 +26,21 @@ def inference(input_text, tokenizer):
26
 
27
  title = "Bilingual Tokenizer"
28
  description = "A simple Gradio interface to see tokenization of Hindi and English(Hinglish) text"
29
- examples = [["He walked into the basement with the horror movie from the night before playing in his head.", "Hinglish_5k"],
30
- ["Henry couldn't decide if he was an auto mechanic or a priest.", "Hinglish_5k"],
31
- ["Poison ivy grew through the fence they said was impenetrable.", "Hinglish_5k"],
 
 
 
 
 
 
 
 
 
 
 
 
32
  ]
33
  demo = gr.Interface(
34
  inference,
 
26
 
27
  title = "Bilingual Tokenizer"
28
  description = "A simple Gradio interface to see tokenization of Hindi and English(Hinglish) text"
29
+ examples = [["I can't believe this is the eighth time I've smashed open my piggy bank on the same day! मैं विश्वास नहीं कर सकता कि यह आठवीं बार है जब मैंने उसी दिन अपना गुल्लक तोड़ा है!", "Hinglish_5k"],
30
+ ["Please wait outside of the house. कृपया घर के बाहर प्रतीक्षा करें.", "Hinglish_5k"],
31
+ ["He said he was not there yesterday; however, many people saw him there. उन्होंने कहा कि वह कल वहां नहीं थे; हालाँकि, कई लोगों ने उसे वहाँ देखा।", "Hinglish_5k"],
32
+ ["The door swung open to reveal pink giraffes and red elephants. गुलाबी जिराफ और लाल हाथियों को दिखाने के लिए दरवाजा खुला।", "Hinglish_5k"]
33
+ ["There's enough glass in my cupboard to build an undersea aquarium. समुद्र के अंदर एक मछलीघर बनाने के लिए मेरी अलमारी में पर्याप्त ग्लास हैं।", "Hinglish_5k"]
34
+ ["I can't believe this is the eighth time I've smashed open my piggy bank on the same day! मैं विश्वास नहीं कर सकता कि यह आठवीं बार है जब मैंने उसी दिन अपना गुल्लक तोड़ा है!", "Hindi_5k"],
35
+ ["Please wait outside of the house. कृपया घर के बाहर प्रतीक्षा करें.", "Hindi_5k"],
36
+ ["He said he was not there yesterday; however, many people saw him there. उन्होंने कहा कि वह कल वहां नहीं थे; हालाँकि, कई लोगों ने उसे वहाँ देखा।", "Hindi_5k"],
37
+ ["The door swung open to reveal pink giraffes and red elephants. गुलाबी जिराफ और लाल हाथियों को दिखाने के लिए दरवाजा खुला।", "Hindi_5k"]
38
+ ["There's enough glass in my cupboard to build an undersea aquarium. समुद्र के अंदर एक मछलीघर बनाने के लिए मेरी अलमारी में पर्याप्त ग्लास हैं।", "Hindi_5k"]
39
+ ["I can't believe this is the eighth time I've smashed open my piggy bank on the same day! मैं विश्वास नहीं कर सकता कि यह आठवीं बार है जब मैंने उसी दिन अपना गुल्लक तोड़ा है!", "English_5k"],
40
+ ["Please wait outside of the house. कृपया घर के बाहर प्रतीक्षा करें.", "English_5k"],
41
+ ["He said he was not there yesterday; however, many people saw him there. उन्होंने कहा कि वह कल वहां नहीं थे; हालाँकि, कई लोगों ने उसे वहाँ देखा।", "English_5k"],
42
+ ["The door swung open to reveal pink giraffes and red elephants. गुलाबी जिराफ और लाल हाथियों को दिखाने के लिए दरवाजा खुला।", "English_5k"]
43
+ ["There's enough glass in my cupboard to build an undersea aquarium. समुद्र के अंदर एक मछलीघर बनाने के लिए मेरी अलमारी में पर्याप्त ग्लास हैं।", "English_5k"]
44
  ]
45
  demo = gr.Interface(
46
  inference,