Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ def update_list(current_list, _):
|
|
| 5 |
current_list = []
|
| 6 |
new_item = f"Item {len(current_list) + 1}" # Dynamically generating new items
|
| 7 |
current_list.append(new_item)
|
| 8 |
-
return current_list
|
| 9 |
|
| 10 |
with gr.Blocks() as demo:
|
| 11 |
with gr.Row():
|
|
|
|
| 5 |
current_list = []
|
| 6 |
new_item = f"Item {len(current_list) + 1}" # Dynamically generating new items
|
| 7 |
current_list.append(new_item)
|
| 8 |
+
return current_list, current_list
|
| 9 |
|
| 10 |
with gr.Blocks() as demo:
|
| 11 |
with gr.Row():
|