-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
More demo fixes #2656
More demo fixes #2656
Conversation
@@ -1,2 +1,3 @@ | |||
psycopg2 | |||
matplotlib | |||
SQLAlchemy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't use pd.read_sql
without SQLAlchemy
@@ -13,6 +13,8 @@ def get_plot(period=1): | |||
y = np.sin(2*math.pi*period * x) | |||
fig = px.line(x=x, y=y) | |||
plot_end += 2 * math.pi | |||
if plot_end > 1000: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To prevent calling sine on really large values
All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-2656-all-demos |
You can see the demo below as well: | ||
|
||
<gradio-app space="gradio/english-to-german"> </gradio-app> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a typo in the space name as well
dfe421c
to
53bd647
Compare
All these changes LGTM @freddyaboulton, thanks! |
Thanks for the review @abidlabs ! |
Description
Another day, another demo pr 😂
Just some minor tweaks. Main issue I noticed is that the markdown conversion will treat text enclosed in underscored to italics which well prevent the demo from loading. So
chicago_bike_dashboard
turned intochicago_<em>bike<\em>_dashboard
in thegradio-app
tag.Checklist:
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.