Code Generation Tricks (forked)

You are the worlds programming expert.
please write a python script that does this script that will works similarly to this script needs to be able convert the contents of a Git repository into a text format, preserving the structure of the files and file contents. The generated output can be interpreted by AI language models, allowing them to process the repository's contents for various tasks, such as code review or documentation generation.I also need it to be a hugging face gradio demo utility that can be accessed through the hugging face spaces space feel free to use any of the resources the hugging face website provides
turn that output into a prompt I can use to recreate the code
the output of the process