Spaces:
Paused
Paused
Commit
·
b3f6d13
1
Parent(s):
153fd31
reintroducing token length watcher with the right function
Browse files
app.py
CHANGED
@@ -210,7 +210,7 @@ with gr.Blocks(css='style.css') as demo:
|
|
210 |
],
|
211 |
outputs=chatbot,
|
212 |
api_name=False,
|
213 |
-
).then (
|
214 |
|
215 |
button_event_preprocess = submit_button.click(
|
216 |
fn=clear_and_save_textbox,
|
@@ -242,7 +242,7 @@ with gr.Blocks(css='style.css') as demo:
|
|
242 |
],
|
243 |
outputs=chatbot,
|
244 |
api_name=False,
|
245 |
-
).then (
|
246 |
|
247 |
retry_button.click(
|
248 |
fn=delete_prev_fn,
|
|
|
210 |
],
|
211 |
outputs=chatbot,
|
212 |
api_name=False,
|
213 |
+
).then (getTokLen, tb, tb )
|
214 |
|
215 |
button_event_preprocess = submit_button.click(
|
216 |
fn=clear_and_save_textbox,
|
|
|
242 |
],
|
243 |
outputs=chatbot,
|
244 |
api_name=False,
|
245 |
+
).then (getTokLen, tb, tb )
|
246 |
|
247 |
retry_button.click(
|
248 |
fn=delete_prev_fn,
|