Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -105,7 +105,7 @@ with gr.Blocks(**AinaGradioTheme().get_kwargs()) as demo:
|
|
105 |
input_.change(fn=change_interactive, inputs=[input_], outputs=[clear_btn, submit_btn])
|
106 |
|
107 |
|
108 |
-
input_.change(fn=None, inputs=input_,
|
109 |
|
110 |
|
111 |
|
|
|
105 |
input_.change(fn=change_interactive, inputs=[input_], outputs=[clear_btn, submit_btn])
|
106 |
|
107 |
|
108 |
+
input_.change(fn=None, inputs=input_, js=f"(i, m) => document.getElementById('counter').textContent = i.length + ' /' + {MAX_NEW_TOKENS}")
|
109 |
|
110 |
|
111 |
|