gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
33.72k stars 2.56k forks source link

Clean Unnecessary Big Files From The Git History #469

Closed omerXfaruq closed 2 years ago

omerXfaruq commented 2 years ago

Is your feature request related to a problem? Please describe. There is unnecessary big files in the git history, and that makes the history cumbersome.

Describe the solution you'd like These files can be deleted from the history and the history would be lighter.

Additional context

All sizes are in kB's. The pack column is the size of the object, compressed, inside the pack file.
size  pack  SHA                                       location
8356  5772  4f61e1e15af2420d125a521d9c7fabf547b81dab  website/homepage/src/assets/img/hf_demo.gif
5309  1483  a74515c9c67edce9e5c9ef5b1b26014fad563266  gradio/templates/frontend/static/bundle.js
3509  816   3a714b0883bce647a8bc5ce6925c50319f1a93cf  gradio/frontend/static/js/2.0081c136.chunk.js.map
2604  2485  3a653eb2157abaa132e6b6abcec3dd72c29a0865  demo/sepia_filter/screenshot.gif
1913  403   416c9e939517632c925833a002ae46a5dc59f175  build/lib/gradio/static/js/vendor/kekule.min.js
1875  1861  37ae79b4a37bfc9eab78262de1fde1ee6f22201f  dist/gradio-0.7.3-py3-none-any.whl
1719  1710  13f4faeae920d51bb2d445fb2623b98f316b7a53  dist/gradio-0.8.1-py3.6.egg
1636  464   2d0ac6fa61544b413cc9276eb9c505d36e18e292  frontend/package-lock.json
1636  396   7c1449ff3750cb62c4058524bed460bee414a2b5  frontend/package-lock.json
1533  1106  b11552f9cb6937d59b18518e3c1cd023ea50359b  demo/kitchen_sink/files/world.mp4
1495  338   ffb6570446f8b77ace06e9b36944e13a410fcb1c  frontend/package-lock.json
1388  1351  82259f2449d2d20c223f372cb1b5f58c376fa7f9  demo/screenshots/image_mod/1.png
1388  1373  b141c82a4006d536562e23e6745186c1e922e87f  demo/screenshots/image_mod/lion.png
1242  1230  2290541b026257c697014596d4da659b2abe2c99  demo/screenshots/image_mod/cheetah1.png
1202  1192  a6750044bbbcc62852756882f15ad1eafffc9d8f  dist/gradio-0.9.6-py3-none-any.whl
1153  1153  8129be23f5475c9e0379a721bc3f682695f3d874  dist/gradio-0.9.9.5.tar.gz
1152  1152  cdc296c1b92e8d44a5027e9fa537cf2c44f7425a  dist/gradio-0.9.7.tar.gz
1152  1152  fac64578e65bbfe591a3a0b62cdb38c1e56eadfa  dist/gradio-0.9.5.tar.gz
1152  1151  63c97394e52bcd2ef420d5d50b09e341e3870dec  dist/gradio-0.9.4.tar.gz
1150  1150  e19b5821bf5da89ff3ff20b4ccb713db18cddc9e  dist/gradio-0.9.6.tar.gz
1110  1096  6df68af06d5673df39f300a1cdc07f09effa4b93  demo/screenshots/image_mod/cheetah2.png
1097  385   758bbe5bfe9463679e40b80634aa75fc2e315f14  gradio/frontend/static/bundle.js.map
1082  1073  c8af75396128916bee1f48e833be3848601ebde2  demo/image_mod/screenshot.png
956   951   410e6cff9a29972d9d9fefaef72ea5d38da98f1c  demo/screenshots/image_mod/1.png
939   337   e56bbca9b6c112a681335bbc5912419ff29a2138  gradio/frontend/static/bundle.js.map
938   926   f3df1b7b909cecd8fc693097b7a7889d17f41fd9  demo/screenshots/disease_report/1.png
884   242   8c08a23dc48ea7534cc1d46b67b4eedcde6f8d63  gradio/frontend/static/js/2.0081c136.chunk.js
860   222   2af6f50f19bb64a837ac741787acf8a306190f22  frontend/package-lock.json
809   236   dabce398b25f6f1b5d29e85047d3aea485743577  demo/files/video.avi
800   788   59d2c63fa44fee816a51437a427079b2a962750b  demo/screenshots/webcam/1.png
abidlabs commented 2 years ago

It would make sense to delete the dist/* files. All other ones are static files needed for the website.

julien-c commented 2 years ago

are you going to rewrite the repo history? There are a lot of risks/annoyances doing that (for instance, everyone who has a local clone will need to recreate it), so you should make sure it's really worth it (and not do it too often) cc @lysandrejik

omerXfaruq commented 2 years ago

After spending some time on stack overflow and git documentation, I think that this is not that necessary. Because we won't be removing that many files, and it is ~8MB which would not probably worth it.

abidlabs commented 2 years ago

👍 thanks for looking into it. Do you want to go ahead and close the issue?