Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -133,17 +133,6 @@ def display_item(index, list_of_items):
|
|
133 |
|
134 |
# Define a function to show the next item
|
135 |
def show_next_item(index, list_of_items):
|
136 |
-
"""Shows the next item in the list of items.
|
137 |
-
|
138 |
-
Args:
|
139 |
-
index: The current index.
|
140 |
-
list_of_items: A list of Python dictionaries, where each dictionary has the following keys:
|
141 |
-
* text: The text.
|
142 |
-
* image_url: The URL of the image.
|
143 |
-
* translation: The translation of the text.
|
144 |
-
* link: The URL of the website link.
|
145 |
-
"""
|
146 |
-
# Increment the index
|
147 |
index += 1
|
148 |
|
149 |
# If the index is greater than the length of the list of items, then reset the index to 0
|
|
|
133 |
|
134 |
# Define a function to show the next item
|
135 |
def show_next_item(index, list_of_items):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
index += 1
|
137 |
|
138 |
# If the index is greater than the length of the list of items, then reset the index to 0
|