Update app.py
Browse files
app.py
CHANGED
|
@@ -76,7 +76,7 @@ with gr.Blocks(title="Translator", theme=gr.themes.Default(primary_hue="red", se
|
|
| 76 |
with gr.Row():
|
| 77 |
with gr.Column():
|
| 78 |
inp = gr.Textbox(lines=5, label="Input Text")
|
| 79 |
-
inp.
|
| 80 |
sel = gr.Dropdown(label="Select Model?", choices=MODELS, value=MODELS[0])
|
| 81 |
btn = gr.Button("Run", variant='primary')
|
| 82 |
with gr.Column():
|
|
|
|
| 76 |
with gr.Row():
|
| 77 |
with gr.Column():
|
| 78 |
inp = gr.Textbox(lines=5, label="Input Text")
|
| 79 |
+
inp.change(fn=words, inputs=inp, outputs=gr.Text(show_label=False, value='Words: 0 / ' + str(curr_words)))
|
| 80 |
sel = gr.Dropdown(label="Select Model?", choices=MODELS, value=MODELS[0])
|
| 81 |
btn = gr.Button("Run", variant='primary')
|
| 82 |
with gr.Column():
|