You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,7 +119,7 @@ by by [@abidlabs](https://github.com/abidlabs) in [PR 2745](https://github.com/g
119
119
* Fixed bug loading audio input models from the hub by [@freddyaboulton](https://github.com/freddyaboulton) in [PR 2779](https://github.com/gradio-app/gradio/pull/2779).
120
120
* Fixed issue where entities were not merged when highlighted text was generated from the
121
121
dictionary inputs [@payoto](https://github.com/payoto) in [PR 2767](https://github.com/gradio-app/gradio/pull/2767)
122
-
122
+
* Fixed bug where generating events did not finish running even if the websocket connection was closed by [@freddyaboulton](https://github.com/freddyaboulton) in [PR 2783](https://github.com/gradio-app/gradio/pull/2783).
Copy file name to clipboardExpand all lines: gradio/events.py
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ def change(
67
67
preprocess: If False, will not run preprocessing of component data before running 'fn' (e.g. leaving it as a base64 string if this method is called with the `Image` component).
68
68
postprocess: If False, will not run postprocessing of component data before returning 'fn' output to the browser.
69
69
cancels: A list of other events to cancel when this event is triggered. For example, setting cancels=[click_event] will cancel the click_event, where click_event is the return value of another components .click method.
70
-
every: Run this event 'every' number of seconds. Interpreted in seconds. Queue must be enabled.
70
+
every: Run this event 'every' number of seconds while the client connection is open. Interpreted in seconds. Queue must be enabled.
71
71
"""
72
72
# _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
73
73
ifstatus_tracker:
@@ -130,7 +130,7 @@ def click(
130
130
preprocess: If False, will not run preprocessing of component data before running 'fn' (e.g. leaving it as a base64 string if this method is called with the `Image` component).
131
131
postprocess: If False, will not run postprocessing of component data before returning 'fn' output to the browser.
132
132
cancels: A list of other events to cancel when this event is triggered. For example, setting cancels=[click_event] will cancel the click_event, where click_event is the return value of another components .click method.
133
-
every: Run this event 'every' number of seconds. Interpreted in seconds. Queue must be enabled.
133
+
every: Run this event 'every' number of seconds while the client connection is open. Interpreted in seconds. Queue must be enabled.
134
134
"""
135
135
# _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
136
136
ifstatus_tracker:
@@ -195,7 +195,7 @@ def submit(
195
195
preprocess: If False, will not run preprocessing of component data before running 'fn' (e.g. leaving it as a base64 string if this method is called with the `Image` component).
196
196
postprocess: If False, will not run postprocessing of component data before returning 'fn' output to the browser.
197
197
cancels: A list of other events to cancel when this event is triggered. For example, setting cancels=[click_event] will cancel the click_event, where click_event is the return value of another components .click method.
198
-
every: Run this event 'every' number of seconds. Interpreted in seconds. Queue must be enabled.
198
+
every: Run this event 'every' number of seconds while the client connection is open. Interpreted in seconds. Queue must be enabled.
199
199
"""
200
200
# _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
201
201
ifstatus_tracker:
@@ -259,7 +259,7 @@ def edit(
259
259
preprocess: If False, will not run preprocessing of component data before running 'fn' (e.g. leaving it as a base64 string if this method is called with the `Image` component).
260
260
postprocess: If False, will not run postprocessing of component data before returning 'fn' output to the browser.
261
261
cancels: A list of other events to cancel when this event is triggered. For example, setting cancels=[click_event] will cancel the click_event, where click_event is the return value of another components .click method.
262
-
every: Run this event 'every' number of seconds. Interpreted in seconds. Queue must be enabled.
262
+
every: Run this event 'every' number of seconds while the client connection is open. Interpreted in seconds. Queue must be enabled.
263
263
"""
264
264
# _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
265
265
ifstatus_tracker:
@@ -323,7 +323,7 @@ def clear(
323
323
preprocess: If False, will not run preprocessing of component data before running 'fn' (e.g. leaving it as a base64 string if this method is called with the `Image` component).
324
324
postprocess: If False, will not run postprocessing of component data before returning 'fn' output to the browser.
325
325
cancels: A list of other events to cancel when this event is triggered. For example, setting cancels=[click_event] will cancel the click_event, where click_event is the return value of another components .click method.
326
-
every: Run this event 'every' number of seconds. Interpreted in seconds. Queue must be enabled.
326
+
every: Run this event 'every' number of seconds while the client connection is open. Interpreted in seconds. Queue must be enabled.
327
327
"""
328
328
# _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
329
329
ifstatus_tracker:
@@ -387,7 +387,7 @@ def play(
387
387
preprocess: If False, will not run preprocessing of component data before running 'fn' (e.g. leaving it as a base64 string if this method is called with the `Image` component).
388
388
postprocess: If False, will not run postprocessing of component data before returning 'fn' output to the browser.
389
389
cancels: A list of other events to cancel when this event is triggered. For example, setting cancels=[click_event] will cancel the click_event, where click_event is the return value of another components .click method.
390
-
every: Run this event 'every' number of seconds. Interpreted in seconds. Queue must be enabled.
390
+
every: Run this event 'every' number of seconds while the client connection is open. Interpreted in seconds. Queue must be enabled.
391
391
"""
392
392
# _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
393
393
ifstatus_tracker:
@@ -449,7 +449,7 @@ def pause(
449
449
preprocess: If False, will not run preprocessing of component data before running 'fn' (e.g. leaving it as a base64 string if this method is called with the `Image` component).
450
450
postprocess: If False, will not run postprocessing of component data before returning 'fn' output to the browser.
451
451
cancels: A list of other events to cancel when this event is triggered. For example, setting cancels=[click_event] will cancel the click_event, where click_event is the return value of another components .click method.
452
-
every: Run this event 'every' number of seconds. Interpreted in seconds. Queue must be enabled.
452
+
every: Run this event 'every' number of seconds while the client connection is open. Interpreted in seconds. Queue must be enabled.
453
453
"""
454
454
# _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
455
455
ifstatus_tracker:
@@ -511,7 +511,7 @@ def stop(
511
511
preprocess: If False, will not run preprocessing of component data before running 'fn' (e.g. leaving it as a base64 string if this method is called with the `Image` component).
512
512
postprocess: If False, will not run postprocessing of component data before returning 'fn' output to the browser.
513
513
cancels: A list of other events to cancel when this event is triggered. For example, setting cancels=[click_event] will cancel the click_event, where click_event is the return value of another components .click method.
514
-
every: Run this event 'every' number of seconds. Interpreted in seconds. Queue must be enabled.
514
+
every: Run this event 'every' number of seconds while the client connection is open. Interpreted in seconds. Queue must be enabled.
515
515
"""
516
516
# _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
517
517
ifstatus_tracker:
@@ -575,7 +575,7 @@ def stream(
575
575
preprocess: If False, will not run preprocessing of component data before running 'fn' (e.g. leaving it as a base64 string if this method is called with the `Image` component).
576
576
postprocess: If False, will not run postprocessing of component data before returning 'fn' output to the browser.
577
577
cancels: A list of other events to cancel when this event is triggered. For example, setting cancels=[click_event] will cancel the click_event, where click_event is the return value of another components .click method.
578
-
every: Run this event 'every' number of seconds. Interpreted in seconds. Queue must be enabled.
578
+
every: Run this event 'every' number of seconds while the client connection is open. Interpreted in seconds. Queue must be enabled.
579
579
"""
580
580
# _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
581
581
self.streaming=True
@@ -639,7 +639,7 @@ def blur(
639
639
preprocess: If False, will not run preprocessing of component data before running 'fn' (e.g. leaving it as a base64 string if this method is called with the `Image` component).
640
640
postprocess: If False, will not run postprocessing of component data before returning 'fn' output to the browser.
641
641
cancels: A list of other events to cancel when this event is triggered. For example, setting cancels=[click_event] will cancel the click_event, where click_event is the return value of another components .click method.
642
-
every: Run this event 'every' number of seconds. Interpreted in seconds. Queue must be enabled.
642
+
every: Run this event 'every' number of seconds while the client connection is open. Interpreted in seconds. Queue must be enabled.
643
643
"""
644
644
# _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
645
645
@@ -696,7 +696,7 @@ def upload(
696
696
preprocess: If False, will not run preprocessing of component data before running 'fn' (e.g. leaving it as a base64 string if this method is called with the `Image` component).
697
697
postprocess: If False, will not run postprocessing of component data before returning 'fn' output to the browser.
698
698
cancels: A list of other events to cancel when this event is triggered. For example, setting cancels=[click_event] will cancel the click_event, where click_event is the return value of another components .click method.
699
-
every: Run this event 'every' number of seconds. Interpreted in seconds. Queue must be enabled.
699
+
every: Run this event 'every' number of seconds while the client connection is open. Interpreted in seconds. Queue must be enabled.
700
700
"""
701
701
# _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
0 commit comments