Spaces:
Sleeping
Sleeping
Commit
·
af1568e
1
Parent(s):
49dd691
Minor chnage
Browse files
app.py
CHANGED
@@ -13,10 +13,10 @@ def inference(input_text):
|
|
13 |
# for word in sentence:
|
14 |
# background_color = random.randint(40, 47)
|
15 |
# color_sentence += f"\033[0;37;{background_color}m {word}"
|
16 |
-
color_sentence =
|
17 |
return len(encoding), color_sentence, encoding
|
18 |
|
19 |
-
title = "Bilingual
|
20 |
description = "A simple Gradio interface to see tokenization of Hindi and English(Hinglish) text"
|
21 |
examples = [["He walked into the basement with the horror movie from the night before playing in his head."],
|
22 |
["Henry couldn't decide if he was an auto mechanic or a priest."],
|
|
|
13 |
# for word in sentence:
|
14 |
# background_color = random.randint(40, 47)
|
15 |
# color_sentence += f"\033[0;37;{background_color}m {word}"
|
16 |
+
color_sentence = "\033[0;37;41m Black"
|
17 |
return len(encoding), color_sentence, encoding
|
18 |
|
19 |
+
title = "Bilingual Tokenizer"
|
20 |
description = "A simple Gradio interface to see tokenization of Hindi and English(Hinglish) text"
|
21 |
examples = [["He walked into the basement with the horror movie from the night before playing in his head."],
|
22 |
["Henry couldn't decide if he was an auto mechanic or a priest."],
|