Add dashboard demo to Demos tab#2508
Conversation
|
All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-2508-all-demos |
| @@ -0,0 +1,3 @@ | |||
| This demo shows how you can build an interactive dashboard with gradio. | |||
| Click on a python library on the left hand side and then on the right hand side click on the metric you'd like to see plot over time. | |||
| Data is pulled from HuggingFace Hub datasets, e.g. [stars](https://huggingface.co/datasets/open-source-metrics/stars) No newline at end of file | |||
There was a problem hiding this comment.
Sadly there i'm not actually rendering the markdown into html, so this will literally show stars on the website. Maybe I should render the md
There was a problem hiding this comment.
lol, let me try that again, this will literally show
[stars](https://huggingface.co/datasets/open-source-metrics/stars)
There was a problem hiding this comment.
Word - I can just put the link directly then?
There was a problem hiding this comment.
Yeah just put it for now, it won't be clickable, but I'll fix this down the line.
| @@ -0,0 +1,72 @@ | |||
| import gradio as gr | |||
| import pandas as pd | |||
There was a problem hiding this comment.
please create a requirements.txt file in this dir and include everything that needs to be installed. otherwise this won't work on spaces.
There was a problem hiding this comment.
Yep will do!
a791abf to
5a84c9f
Compare
|
@aliabd Fixes the formatting issue. It's cause I had a tag in a markdown component. |
5a84c9f to
1f076a0
Compare

Description
Adds the open source metrics dashboard to the Demos tab so it's easier for people to find and keeps up to date.
A note about the CHANGELOG
Hello 👋 and thank you for contributing to Gradio!
All pull requests must update the change log located in CHANGELOG.md, unless the pull request is labeled with the "no-changelog-update" label.
Please add a brief summary of the change to the Upcoming Release > Full Changelog section of the CHANGELOG.md file and include
a link to the PR (formatted in markdown) and a link to your github profile (if you like). For example, "* Added a cool new feature by
[@myusername](link-to-your-github-profile)in[PR 11111](https://github.com/gradio-app/gradio/pull/11111)".If you would like to elaborate on your change further, feel free to include a longer explanation in the other sections.
If you would like an image/gif/video showcasing your feature, it may be best to edit the CHANGELOG file using the
GitHub web UI since that lets you upload files directly via drag-and-drop.