screenshot-to-code
screenshot-to-code copied to clipboard
Use a better HTML code formatter
When images are replaced, we run the code through BeautifulSoup which changes the code formatting to something much less nice than what GPT outputs. It doesn't format CSS and JS embedded within the HTML. Find and use a different HTML code formatter in image_generation.py
I tried pytidylib and it was no good: https://countergram.github.io/pytidylib
Or could just do it on the client-side (good libraries abound).
I can work on this issue!
@namrata18s awesome! probably easy to do it on the client-side after the image generation code is returned
It is not interesting to use a JSX framework in order to have a file ?