if result_gallery is not None:
Browse files- gradio_demo.py +3 -2
gradio_demo.py
CHANGED
|
@@ -446,8 +446,9 @@ def load_and_reset(param_setting):
|
|
| 446 |
|
| 447 |
def log_information(result_gallery):
|
| 448 |
print('log_information')
|
| 449 |
-
|
| 450 |
-
|
|
|
|
| 451 |
|
| 452 |
def on_select_result(result_gallery, evt: gr.SelectData):
|
| 453 |
print('on_select_result')
|
|
|
|
| 446 |
|
| 447 |
def log_information(result_gallery):
|
| 448 |
print('log_information')
|
| 449 |
+
if result_gallery is not None:
|
| 450 |
+
for i, result in enumerate(result_gallery):
|
| 451 |
+
print(result[0][0])
|
| 452 |
|
| 453 |
def on_select_result(result_gallery, evt: gr.SelectData):
|
| 454 |
print('on_select_result')
|