Skip to content

Commit

Permalink
removed commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dryruffian committed Jul 27, 2024
1 parent ebb9f57 commit be827a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'.vscode', '.idea', '*.swp',
'*.class', '*.o', '*.so',
'*.log',
'*~', '*.bak', '*.tmp',
'*~', '*.bak', '*.tmp','.env','build','package-lock.json','package.json'
]

def extract_file(file_path, extract_dir):
Expand Down Expand Up @@ -60,7 +60,6 @@ def extract_and_process(file):
output += process_directory(temp_dir, spec)

shutil.rmtree(temp_dir)

return output

def generate_tree(path, spec):
Expand Down Expand Up @@ -119,6 +118,6 @@ def process_directory(path, spec):
copy_button = gr.Button("Copy to Clipboard", elem_id="copy_button")

submit_button.click(extract_and_process, inputs=input_file, outputs=output)
copy_button.click(None, [], [],js=js_copy)
copy_button.click(None, [], None, js=js_copy)

iface.launch()

0 comments on commit be827a2

Please sign in to comment.