piyushgrover commited on
Commit
7cd1a0a
·
verified ·
1 Parent(s): 97e6401

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -8
app.py CHANGED
@@ -40,7 +40,7 @@ with gr.Blocks() as app:
40
 
41
  # Example for encoding
42
  encode_example = gr.Examples(
43
- examples=["मेरा भारत महान", "गणितीय महत्व", "स्वतंत्रता दिवस"],
44
  inputs=hindi_text_input,
45
  outputs=token_ids_output,
46
  fn=encode_text
@@ -52,13 +52,7 @@ with gr.Blocks() as app:
52
  decoded_text_output = gr.Textbox(label="Decoded Hindi Text", interactive=False)
53
  decode_button = gr.Button("Decode")
54
 
55
- # Example for decoding
56
- decode_example = gr.Examples(
57
- examples=["[23, 34, 45, 67]", "[102, 233, 45]", "[19, 78, 56, 112]"],
58
- inputs=token_ids_input,
59
- outputs=decoded_text_output,
60
- fn=decode_tokens
61
- )
62
 
63
  encode_button.click(encode_text, inputs=hindi_text_input, outputs=token_ids_output)
64
  decode_button.click(decode_tokens, inputs=token_ids_input, outputs=decoded_text_output)
 
40
 
41
  # Example for encoding
42
  encode_example = gr.Examples(
43
+ examples=["मेरा भारत महान॥", "आपका घर कितनी दूर है?", "स्वतंत्रता दिवस", "द क्विक ब्राउन फॉक्स जम्प्स ओवर ए लेज़ी डॉग।"],
44
  inputs=hindi_text_input,
45
  outputs=token_ids_output,
46
  fn=encode_text
 
52
  decoded_text_output = gr.Textbox(label="Decoded Hindi Text", interactive=False)
53
  decode_button = gr.Button("Decode")
54
 
55
+
 
 
 
 
 
 
56
 
57
  encode_button.click(encode_text, inputs=hindi_text_input, outputs=token_ids_output)
58
  decode_button.click(decode_tokens, inputs=token_ids_input, outputs=decoded_text_output)