Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -94,9 +94,6 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 94 |
input_text = gr.Textbox(
|
| 95 |
label="Odia Text", placeholder="Enter Odia Text Here...", lines=10
|
| 96 |
)
|
| 97 |
-
example = gr.Textbox(
|
| 98 |
-
label="example", value="କଣ ହେଲା?,ତୁମେ ମଧ୍ୟାହ୍ନ ଭୋଜନ କରିସାରିଲ କି?", lines=10
|
| 99 |
-
)
|
| 100 |
|
| 101 |
with gr.Column(scale=1):
|
| 102 |
token_count = gr.Number(label="No of Tokens")
|
|
@@ -106,7 +103,7 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 106 |
|
| 107 |
input_text.change(
|
| 108 |
fn=tokenize_text,
|
| 109 |
-
inputs=[input_text
|
| 110 |
outputs=[token_count, compression_ratio, highlighted_output, token_list],
|
| 111 |
)
|
| 112 |
|
|
|
|
| 94 |
input_text = gr.Textbox(
|
| 95 |
label="Odia Text", placeholder="Enter Odia Text Here...", lines=10
|
| 96 |
)
|
|
|
|
|
|
|
|
|
|
| 97 |
|
| 98 |
with gr.Column(scale=1):
|
| 99 |
token_count = gr.Number(label="No of Tokens")
|
|
|
|
| 103 |
|
| 104 |
input_text.change(
|
| 105 |
fn=tokenize_text,
|
| 106 |
+
inputs=[input_text],
|
| 107 |
outputs=[token_count, compression_ratio, highlighted_output, token_list],
|
| 108 |
)
|
| 109 |
|