Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -221,8 +221,8 @@ def create_app():
|
|
| 221 |
content, has_more, remaining = search_spaces(search_text, category, offset)
|
| 222 |
return {
|
| 223 |
spaces_display: content,
|
| 224 |
-
load_more_btn: gr.
|
| 225 |
-
remaining_text: gr.Markdown.update
|
| 226 |
visible=has_more,
|
| 227 |
value=f"*{remaining} more spaces available*"
|
| 228 |
)
|
|
|
|
| 221 |
content, has_more, remaining = search_spaces(search_text, category, offset)
|
| 222 |
return {
|
| 223 |
spaces_display: content,
|
| 224 |
+
load_more_btn: gr.update(visible=has_more), # Changed from gr.Button.update
|
| 225 |
+
remaining_text: gr.update( # Changed from gr.Markdown.update
|
| 226 |
visible=has_more,
|
| 227 |
value=f"*{remaining} more spaces available*"
|
| 228 |
)
|