Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dashboard demo to Demos tab #2508

Merged
merged 4 commits into from
Oct 25, 2022
Merged

Add dashboard demo to Demos tab #2508

merged 4 commits into from
Oct 25, 2022

Conversation

freddyaboulton
Copy link
Collaborator

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.

@github-actions
Copy link
Contributor

All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-2508-all-demos

@freddyaboulton freddyaboulton marked this pull request as ready for review October 20, 2022 19:41
@@ -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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol, let me try that again, this will literally show
[stars](https://huggingface.co/datasets/open-source-metrics/stars)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Word - I can just put the link directly then?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please create a requirements.txt file in this dir and include everything that needs to be installed. otherwise this won't work on spaces.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep will do!

@freddyaboulton
Copy link
Collaborator Author

@aliabd Fixes the formatting issue. It's cause I had a tag in a markdown component.

image

@freddyaboulton freddyaboulton merged commit 943cdd5 into main Oct 25, 2022
@freddyaboulton freddyaboulton deleted the add-dashboard-demo branch October 25, 2022 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants