VuAI commited on
Commit
857cfb3
·
1 Parent(s): 11667c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.input(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():
 
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():