Fix event_id
Browse files- gradio_demo.py +3 -5
gradio_demo.py
CHANGED
|
@@ -412,7 +412,7 @@ def restore(
|
|
| 412 |
print(information)
|
| 413 |
|
| 414 |
# Only one image can be shown in the slider
|
| 415 |
-
return [input_image] + [results[0]], gr.update(format = output_format, value = [input_image] + results), gr.update(value = information, visible = True)
|
| 416 |
|
| 417 |
def load_and_reset(param_setting):
|
| 418 |
print('load_and_reset ==>>')
|
|
@@ -626,8 +626,7 @@ with gr.Blocks(title="SUPIR") as interface:
|
|
| 626 |
outputs = [
|
| 627 |
result_slider,
|
| 628 |
result_gallery,
|
| 629 |
-
restore_information
|
| 630 |
-
event_id
|
| 631 |
],
|
| 632 |
examples = [
|
| 633 |
[
|
|
@@ -755,8 +754,7 @@ with gr.Blocks(title="SUPIR") as interface:
|
|
| 755 |
], outputs = [
|
| 756 |
result_slider,
|
| 757 |
result_gallery,
|
| 758 |
-
restore_information
|
| 759 |
-
event_id
|
| 760 |
]).success(fn = log_information, inputs = [
|
| 761 |
result_gallery
|
| 762 |
], outputs = [], queue = False, show_progress = False)
|
|
|
|
| 412 |
print(information)
|
| 413 |
|
| 414 |
# Only one image can be shown in the slider
|
| 415 |
+
return [input_image] + [results[0]], gr.update(format = output_format, value = [input_image] + results), gr.update(value = information, visible = True)
|
| 416 |
|
| 417 |
def load_and_reset(param_setting):
|
| 418 |
print('load_and_reset ==>>')
|
|
|
|
| 626 |
outputs = [
|
| 627 |
result_slider,
|
| 628 |
result_gallery,
|
| 629 |
+
restore_information
|
|
|
|
| 630 |
],
|
| 631 |
examples = [
|
| 632 |
[
|
|
|
|
| 754 |
], outputs = [
|
| 755 |
result_slider,
|
| 756 |
result_gallery,
|
| 757 |
+
restore_information
|
|
|
|
| 758 |
]).success(fn = log_information, inputs = [
|
| 759 |
result_gallery
|
| 760 |
], outputs = [], queue = False, show_progress = False)
|