waroca commited on
Commit
b828054
·
verified ·
1 Parent(s): cfd4a44

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -415,7 +415,7 @@ def main():
415
  # Catalog Tab
416
  with gr.Tab("Catalog", id="catalog"):
417
  # Use gr.render with State input to re-render when login state changes
418
- @gr.render(inputs=[logged_in_user])
419
  def render_catalog(username):
420
  datasets = utils.get_catalog() or []
421
 
@@ -500,8 +500,7 @@ def main():
500
 
501
  btn.click(
502
  fn=make_subscribe_handler(dataset_id, display_name, is_free),
503
- outputs=[subscribe_status],
504
- key=f"subscribe-click-{dataset_id}"
505
  )
506
  else:
507
  # User not logged in - show hint
 
415
  # Catalog Tab
416
  with gr.Tab("Catalog", id="catalog"):
417
  # Use gr.render with State input to re-render when login state changes
418
+ @gr.render(inputs=logged_in_user)
419
  def render_catalog(username):
420
  datasets = utils.get_catalog() or []
421
 
 
500
 
501
  btn.click(
502
  fn=make_subscribe_handler(dataset_id, display_name, is_free),
503
+ outputs=[subscribe_status]
 
504
  )
505
  else:
506
  # User not logged in - show hint