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
31.96k stars 2.38k forks source link

Dead links #1330

Closed BioGeek closed 2 years ago

BioGeek commented 2 years ago

Is there an existing issue for this?

Describe the bug

There are several dead links in this repository, see the list below (some of the results, like http://localhost:7860/ are false positives).

Reproduction

Install markdown-link-check and then run the command

find . -name \*.md -print0 | xargs -0 -n1 markdown-link-check

It might be a good idea to add the Github Action to this repository to catch these dead links earlier.

Screenshot

No response

Logs

FILE: ./readme_template.md
  [✓] https://circleci.com/gh/gradio-app/gradio
  [✓] https://badge.fury.io/py/gradio
  [✓] https://codecov.io/gh/gradio-app/gradio
  [✓] https://pypi.org/project/gradio/
  [✓] https://twitter.com/gradio
  [✓] https://gradio.app/getting_started
  [✓] https://github.com/gradio-app/gradio/blob/master/CONTRIBUTING.md
  [✓] http://www.gradio.app
  [✓] https://arxiv.org/pdf/1906.02569.pdf
  [✓] https://circleci.com/gh/gradio-app/gradio.svg?style=svg
  [✓] https://badge.fury.io/py/gradio.svg
  [✓] https://codecov.io/gh/gradio-app/gradio/branch/master/graph/badge.svg?token=NNVPX9KEGS
  [✓] https://img.shields.io/pypi/dm/gradio
  [✓] https://img.shields.io/twitter/follow/gradio.svg?style=social&label=Follow
  [✓] website/homepage/src/assets/img/meta-image-2.png

  15 links checked.

FILE: ./README.md
  [✓] https://circleci.com/gh/gradio-app/gradio
  [✓] https://badge.fury.io/py/gradio
  [✓] https://codecov.io/gh/gradio-app/gradio
  [✓] https://pypi.org/project/gradio/
  [✓] https://twitter.com/gradio
  [✓] https://gradio.app/getting_started
  [✓] https://colab.research.google.com/drive/18ODkJvyxHutTN0P5APWyGFO_xwNcgHDZ?usp=sharing
  [✖] http://localhost:7860/
  [✖] /docs
  [✓] https://gradio.app/docs
  [✖] introduction_to_blocks
  [✓] https://www.ssh.com/ssh/tunneling/example
  [✓] http://huggingface.co/spaces/
  [✓] https://huggingface.co/course/chapter9/1
  [✖] /introduction_to_blocks/
  [✖] /advanced_interface_features
  [✓] https://hf.space/
  [✓] https://github.com/gradio-app/gradio/blob/master/CONTRIBUTING.md
  [✓] http://www.gradio.app
  [✓] https://arxiv.org/pdf/1906.02569.pdf
  [✓] https://circleci.com/gh/gradio-app/gradio.svg?style=svg
  [✓] https://badge.fury.io/py/gradio.svg
  [✓] https://codecov.io/gh/gradio-app/gradio/branch/master/graph/badge.svg?token=NNVPX9KEGS
  [✓] https://img.shields.io/pypi/dm/gradio
  [✓] https://img.shields.io/twitter/follow/gradio.svg?style=social&label=Follow
  [✓] website/homepage/src/assets/img/meta-image-2.png
  [✓] demo/hello_world/screenshot.gif
  [✓] demo/hello_world_2/screenshot.gif
  [✓] demo/hello_world_3/screenshot.gif
  [✓] demo/sepia_filter/screenshot.gif
  [✓] demo/sales_projections/screenshot.gif
  [✓] demo/calculator/screenshot.gif
  [✓] demo/calculator_live/screenshot.gif
  [✓] demo/blocks_flipper/screenshot.gif
  [✓] website/homepage/src/assets/img/sharing.svg
  [✓] website/homepage/src/assets/img/hf_demo.gif

  36 links checked.

  ERROR: 5 dead links found!
  [✖] http://localhost:7860/ → Status: 0
  [✖] /docs → Status: 400
  [✖] introduction_to_blocks → Status: 400
  [✖] /introduction_to_blocks/ → Status: 400
  [✖] /advanced_interface_features → Status: 400

FILE: ./ui/packages/workbench/README.md
  [✓] https://github.com/sveltejs/kit/tree/master/packages/create-svelte
  [✓] https://kit.svelte.dev/docs/adapters

  2 links checked.

FILE: ./ui/packages/html/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./ui/packages/button/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./ui/packages/tootils/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./ui/packages/label/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./ui/packages/tabs/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./ui/packages/image/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./ui/packages/video/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./ui/packages/audio/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./ui/packages/form/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./ui/packages/carousel/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./ui/packages/json/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./ui/packages/theme/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./ui/packages/app/src/lang/README.md
  [✓] http://4umi.com/web/html/languagecodes.php
  [✖] https://github.com/gradio-app/gradio/blob/master/ui/packages/app/public/lang/en.json

  2 links checked.

  ERROR: 1 dead links found!
  [✖] https://github.com/gradio-app/gradio/blob/master/ui/packages/app/public/lang/en.json → Status: 404

FILE: ./ui/packages/utils/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./ui/packages/chatbot/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./ui/packages/file/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./ui/packages/highlighted-text/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./ui/packages/tooltip/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./ui/packages/chart/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./ui/packages/table/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./ui/packages/atoms/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./ui/README.md
  [✓] #setup
  [✓] #running-the-application
  [✓] #local-development
  [✓] #building-for-production
  [✓] #quality-checks
  [✓] #ci-checks
  [✓] https://pnpm.io/
  [✓] https://pnpm.io/installation
  [✓] https://prettier.io/
  [✓] https://www.typescriptlang.org/

  10 links checked.

FILE: ./.github/PULL_REQUEST_TEMPLATE.md
  No hyperlinks found!

  0 links checked.

FILE: ./.github/ISSUE_TEMPLATE/feature_request.md
  No hyperlinks found!

  0 links checked.

FILE: ./guides/real_time_speech_recognition.md
  [✓] https://huggingface.co/spaces/abidlabs/streaming-asr-paused
  [✓] https://huggingface.co/spaces/abidlabs/full-context-asr
  [✖] /getting_started
  [✓] https://www.ffmpeg.org/download.html
  [✓] https://huggingface.co/spaces/abidlabs/streaming-asr
  [✓] https://deepspeech.readthedocs.io/en/r0.9/
  [✓] https://hf.space/gradioiframe/abidlabs/streaming-asr-paused/+
  [✓] https://hf.space/gradioiframe/abidlabs/full-context-asr/+
  [✓] https://hf.space/gradioiframe/abidlabs/streaming-asr/+

  9 links checked.

  ERROR: 1 dead links found!
  [✖] /getting_started → Status: 400

FILE: ./guides/introduction_to_blocks.md
  [✓] https://colab.research.google.com/drive/1n_uB44G_uENGf0zroeVKgcytFQ-7UwZt?usp=sharing
  [✖] http://localhost:7860/
  [✓] https://www.gradio.app/docs
  [✓] https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox
  [✓] https://www.ssh.com/ssh/tunneling/example
  [✓] http://huggingface.co/spaces/
  [✖] /assets/img/sharing.svg
  [✖] /assets/img/hf_demo.gif

  8 links checked.

  ERROR: 3 dead links found!
  [✖] http://localhost:7860/ → Status: 0
  [✖] /assets/img/sharing.svg → Status: 400
  [✖] /assets/img/hf_demo.gif → Status: 400

FILE: ./guides/building_a_pictionary_app.md
  [✓] https://huggingface.co/spaces/nateraw/quickdraw
  [✖] /getting_started
  [✓] https://huggingface.co/spaces/nateraw/quickdraw/blob/main/pytorch_model.bin
  [✓] https://github.com/nateraw/quickdraw-pytorch
  [✓] https://huggingface.co/spaces/nateraw/quickdraw/blob/main/class_names.txt
  [✓] https://hf.space/embed/abidlabs/draw2/+

  6 links checked.

  ERROR: 1 dead links found!
  [✖] /getting_started → Status: 400

FILE: ./guides/image_classification_in_pytorch.md
  [✓] https://huggingface.co/spaces/abidlabs/pytorch-image-classifier
  [✓] https://huggingface.co/spaces/pytorch/ResNet
  [✓] https://huggingface.co/spaces/pytorch/ResNext
  [✓] https://huggingface.co/spaces/pytorch/SqueezeNet
  [✖] /getting_started
  [✓] https://pytorch.org/hub/pytorch_vision_resnet/
  [✓] https://git.io/JJkYN
  [✓] https://hf.space/embed/abidlabs/pytorch-image-classifier/+

  8 links checked.

  ERROR: 1 dead links found!
  [✖] /getting_started → Status: 400

FILE: ./guides/image_classification_with_vision_transformers.md
  [✓] https://huggingface.co/spaces/abidlabs/vision-transformer
  [✖] /getting_started
  [✓] https://huggingface.co/models?pipeline_tag=image-classification
  [✓] https://hf.space/embed/abidlabs/vision-transformer/+

  4 links checked.

  ERROR: 1 dead links found!
  [✖] /getting_started → Status: 400

FILE: ./guides/README.md
  [✓] https://github.com/gradio-app/gradio/blob/master/guides/creating_a_chatbot.md
  [✓] https://github.com/gradio-app/gradio/blob/master/guides/using_flagging.md
  [✓] https://github.com/gradio-app/gradio/issues?q=is%3Aopen+is%3Aissue+label%3Aguides
  [✓] https://huggingface.co/spaces

  4 links checked.

FILE: ./guides/getting_started.md
  [✓] https://colab.research.google.com/drive/18ODkJvyxHutTN0P5APWyGFO_xwNcgHDZ?usp=sharing
  [✖] http://localhost:7860/
  [✖] /docs
  [✓] https://gradio.app/docs
  [✖] introduction_to_blocks
  [✓] https://www.ssh.com/ssh/tunneling/example
  [✓] http://huggingface.co/spaces/
  [✓] https://huggingface.co/course/chapter9/1
  [✖] /introduction_to_blocks/
  [✖] /advanced_interface_features
  [✓] https://hf.space/
  [✖] /assets/img/sharing.svg
  [✖] /assets/img/hf_demo.gif

  13 links checked.

  ERROR: 7 dead links found!
  [✖] http://localhost:7860/ → Status: 0
  [✖] /docs → Status: 400
  [✖] introduction_to_blocks → Status: 400
  [✖] /introduction_to_blocks/ → Status: 400
  [✖] /advanced_interface_features → Status: 400
  [✖] /assets/img/sharing.svg → Status: 400
  [✖] /assets/img/hf_demo.gif → Status: 400

FILE: ./guides/Gradio_and_ONNX_on_Hugging_Face.md
  [✓] https://huggingface.co/spaces/onnx/EfficientNet-Lite4
  [✓] https://onnx.ai/
  [✓] https://github.com/onnx/models
  [✓] https://gradio.app/getting_started
  [✓] https://huggingface.co/spaces/launch
  [✓] https://huggingface.co/models?library=onnx&sort=downloads
  [✓] https://github.com/microsoft/onnxruntime
  [✓] https://github.com/apache/incubator-mxnet
  [✓] https://onnxruntime.ai/
  [✓] https://github.com/onnx/models/tree/main/vision/classification/efficientnet-lite4
  [✓] https://github.com/onnx/models/blob/main/.github/PULL_REQUEST_TEMPLATE.md
  [✓] https://huggingface.co/join
  [✓] https://github.com/onnx/models#models
  [✓] https://huggingface.co/blog/gradio-spaces
  [✓] https://huggingface.co/onnx
  [✓] https://hf.space/embed/onnx/EfficientNet-Lite4/+

  16 links checked.

FILE: ./guides/create_your_own_friends_with_a_gan.md
  [✓] https://huggingface.co/spaces/NimaBoscarino/cryptopunks
  [✓] https://huggingface.co/spaces/nateraw/cryptopunks-generator
  [✓] https://huggingface.co/NimaBoscarino
  [✓] https://huggingface.co/nateraw
  [✓] https://www.nytimes.com/interactive/2022/03/18/technology/nft-guide.html
  [✓] https://www.canada.ca/en/revenue-agency/programs/about-canada-revenue-agency-cra/compliance/digital-currency/cryptocurrency-guide.html
  [✓] https://www.larvalabs.com/cryptopunks
  [✓] https://thispersondoesnotexist.com/
  [✓] https://salu133445.github.io/musegan/
  [✖] /getting_started
  [✓] https://arxiv.org/abs/1406.2661
  [✓] https://www.analyticsvidhya.com/blog/2021/06/a-detailed-explanation-of-gan-with-implementation-using-tensorflow-and-keras/
  [✓] https://pytorch.org/tutorials/beginner/dcgan_faces_tutorial.html
  [✓] https://github.com/teddykoker/cryptopunks-gan/blob/main/train.py#L90
  [✓] https://huggingface.co/nateraw/cryptopunks-gan
  [✖] ./adding_rich_descriptions_to_your_demo
  [✓] https://huggingface.co/models?other=gan
  [✓] https://hf.space/embed/NimaBoscarino/cryptopunks/+
  [✓] https://hf.space/embed/NimaBoscarino/cryptopunks-1/+

  19 links checked.

  ERROR: 2 dead links found!
  [✖] /getting_started → Status: 400
  [✖] ./adding_rich_descriptions_to_your_demo → Status: 400

FILE: ./guides/advanced_interface_features.md
  [✖] /getting_started
  [✓] https://christophm.github.io/interpretable-ml-book/shap.html
  [✓] https://huggingface.co/course/chapter9/1
  [✖] /introduction_to_blocks/
  [✓] http://hf.space/

  5 links checked.

  ERROR: 2 dead links found!
  [✖] /getting_started → Status: 400
  [✖] /introduction_to_blocks/ → Status: 400

FILE: ./guides/using_hugging_face_integrations.md
  [✓] https://huggingface.co/spaces/farukozderim/Model-Comparator-Space-Builder
  [✓] https://huggingface.co/spaces/osanseviero/helsinki_translation_en_es
  [✓] https://huggingface.co/spaces/osanseviero/remove-bg-webcam
  [✓] https://huggingface.co/spaces/mrm8488/GPT-J-6B
  [✓] https://huggingface.co/spaces/akhaliq/T0pp
  [✓] https://huggingface.co/spaces/osanseviero/mix_match_gradio
  [✓] https://huggingface.co/osanseviero
  [✓] https://huggingface.co/farukozderim
  [✓] https://huggingface.co/models
  [✓] https://huggingface.co/datasets
  [✓] https://huggingface.co/spaces
  [✓] https://huggingface.co/Helsinki-NLP/opus-mt-en-es
  [✓] https://huggingface.co/docs/transformers/v4.16.2/en/main_classes/pipelines#transformers.pipeline
  [✓] https://huggingface.co/inference-api
  [✓] https://huggingface.co/pricing
  [✖] hf.co/spaces
  [✓] https://huggingface.co/new-space
  [✓] https://huggingface.co/spaces/eugenesiow/remove-bg
  [✓] https://huggingface.co/docs/huggingface_hub/index
  [✓] https://hf.space/embed/osanseviero/helsinki_translation_en_es/+
  [✓] https://hf.space/embed/eugenesiow/remove-bg/+
  [✓] https://hf.space/embed/osanseviero/remove-bg-webcam/+
  [✓] https://hf.space/embed/osanseviero/mix_match_gradio/+
  [✓] https://hf.space/embed/farukozderim/Model-Comparator-Space-Builder/+

  24 links checked.

  ERROR: 1 dead links found!
  [✖] hf.co/spaces → Status: 400

FILE: ./guides/creating_a_chatbot.md
  [✓] https://huggingface.co/spaces/abidlabs/chatbot-minimal
  [✓] https://huggingface.co/spaces/ThomasSimonini/Chat-with-Gandalf-GPT-J6B
  [✓] https://huggingface.co/spaces/gorkemgoknar/moviechatbot
  [✓] https://huggingface.co/spaces/Kirili4ik/chat-with-Kirill
  [✖] /getting_started
  [✓] https://huggingface.co/microsoft/DialoGPT-medium
  [✓] https://gradio.app/getting_started/
  [✓] https://huggingface.co/spaces/abidlabs/chatbot-stylized
  [✓] https://huggingface.co/spaces/abidlabs/chatbot-stylized/tree/main
  [✓] https://hf.space/embed/abidlabs/chatbot-stylized/+
  [✓] https://hf.space/embed/abidlabs/chatbot-minimal/+

  11 links checked.

  ERROR: 1 dead links found!
  [✖] /getting_started → Status: 400

FILE: ./guides/adding_rich_descriptions_to_your_demo.md
  [✓] https://huggingface.co/spaces/ThomasSimonini/Chat-with-Gandalf-GPT-J6B
  [✓] https://huggingface.co/spaces/kingabzpro/Rick_and_Morty_Bot
  [✓] https://huggingface.co/spaces/nateraw/cryptopunks-generator
  [✓] https://gradio.app
  [✓] https://gradio.app/assets/img/logo.png
  [✓] https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
  [✓] https://hf.space/embed/aliabd/rick-and-morty/+
  [✖] website/src/assets/img/guides/adding_rich_descriptions_to_your_demo/annotated.png

  8 links checked.

  ERROR: 1 dead links found!
  [✖] website/src/assets/img/guides/adding_rich_descriptions_to_your_demo/annotated.png → Status: 400

FILE: ./guides/image_classification_in_tensorflow.md
  [✓] https://huggingface.co/spaces/abidlabs/keras-image-classifier
  [✖] /getting_started
  [✓] https://keras.io/api/applications/mobilenet/
  [✓] https://git.io/JJkYN
  [✓] https://hf.space/embed/abidlabs/keras-image-classifier/+

  5 links checked.

  ERROR: 1 dead links found!
  [✖] /getting_started → Status: 400

FILE: ./guides/using_flagging.md
  [✓] https://huggingface.co/spaces/aliabd/calculator-flagging-crowdsourced
  [✓] https://huggingface.co/spaces/aliabd/calculator-flagging-options
  [✓] https://huggingface.co/spaces/aliabd/calculator-flag-basic
  [✓] https://huggingface.co/datasets/aliabd/crowdsourced-calculator-demo/blob/main/data.csv
  [✓] https://github.com/gradio-app/gradio/blob/master/gradio/flagging.py
  [✓] https://hf.space/embed/aliabd/calculator-flag-basic/+
  [✓] https://hf.space/embed/aliabd/calculator-flagging-options/+
  [✓] https://hf.space/embed/aliabd/calculator-flagging-crowdsourced/+
  [✖] website/src/assets/img/guides/using_flagging/flag_button.gif
  [✖] website/src/assets/img/guides/using_flagging/flagging-callback-hf.png

  10 links checked.

  ERROR: 2 dead links found!
  [✖] website/src/assets/img/guides/using_flagging/flag_button.gif → Status: 400
  [✖] website/src/assets/img/guides/using_flagging/flagging-callback-hf.png → Status: 400

FILE: ./test/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./SECURITY.md
  [✓] mailto:team@gradio.app

  1 links checked.

FILE: ./website/homepage/README.md
  No hyperlinks found!

  0 links checked.

FILE: ./website/README.md
  [✓] https://gradio.app

  1 links checked.

FILE: ./CONTRIBUTING.md
  [✓] https://github.com/gradio-app/gradio.git
  [✖] /ui/README.md
  [✓] http://www.gradio.app

  3 links checked.

  ERROR: 1 dead links found!
  [✖] /ui/README.md → Status: 400

System Info

N/A

Severity

annoyance

abidlabs commented 2 years ago

There's a lot of false positives because the Gradio website (www.gradio.app) is built from this repo as well and its relative links appear as "broken links" here. But we've had other issues and PRs that have fixed all of the actual dead links as far as I'm aware. If there are other broken links that you find, please feel free to open an issue for those specific links.