nihalaninihal commited on
Commit
bf27207
·
verified ·
1 Parent(s): 00a78ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -260,7 +260,7 @@ def get_selected_files(html_structure, repo_tree):
260
  def generate_file_checkboxes(tree):
261
  """Generate file checkboxes for selection."""
262
  if not tree:
263
- return []
264
 
265
  blob_items = [item for item in tree if item.get('type') == 'blob']
266
  file_options = {}
@@ -405,4 +405,4 @@ with gr.Blocks(css="""
405
 
406
  # Launch the app
407
  if __name__ == "__main__":
408
- demo.launch()
 
260
  def generate_file_checkboxes(tree):
261
  """Generate file checkboxes for selection."""
262
  if not tree:
263
+ return {} # Return empty dictionary instead of empty list
264
 
265
  blob_items = [item for item in tree if item.get('type') == 'blob']
266
  file_options = {}
 
405
 
406
  # Launch the app
407
  if __name__ == "__main__":
408
+ demo.launch(share=True) # Added share=True to create a public link