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
chore: Change time format #7274
Conversation
🪼 branch checks and previews
|
🦄 change detectedThis Pull Request includes changes to the following packages.
With the following changelog entry.
|
This reverts commit cebfabb.
Thanks @arian81! You addressed my suggestion from #7270 which was to extract the logic into a separate helper function, so this looks good. As mentioned in #7270, there is actually one more instance of time formatting that needs to be fixed, which is here: gradio/js/video/shared/Player.svelte Line 80 in 21cfb0a
|
…into change-time-format
I will change that instance. I had one question tho and that is why the formatting logic for video player different than the rest. Currently i didn't apply the same function to the video player because i'm not even sure which component is using that one. But it would nice if you could clarify this. |
I believe its the static Video component that is using this. So if you were to do: import gradio as gr
with gr.Blocks() as demo:
gr.Video("test.mp4")
demo.launch() you'll see that even with your changes, its still using the mm:ss format right now |
ok i changed that one to use the global function as well. Everything seems to be working now. |
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.
Small nit but. looks good! Thanks @arian81 !
@abidlabs Something seems to be broken in the upload button causing the functional test to fail but I haven't changed that file. |
I think that's just a flaky functional test we need to get under control, don't worry about it! |
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.
LGTM thanks @arian81!
Thanks for this everyone! Needed this to get something blocking on my end moving. :) |
* fix: typos * fix: remove newlines from latex delimiters * add changeset * chore: change time format to HH:MM:SS * add changeset * Revert "fix: remove newlines from latex delimiters" This reverts commit cebfabb. * fix: remove accidental changes from different pr * add changeset * chore: change time format for player to use global formatting function * fix: remove pipfile * chore: use global time formatting for static video player * chore: change to snake_case * change --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Description
Please include a concise summary, in clear English, of the changes in this pull request. If it closes an issue, please mention it here.
Closes: #7179
🎯 PRs Should Target Issues
Before your create a PR, please check to see if there is an existing issue for this change. If not, please create an issue before you create this PR, unless the fix is very small.
Not adhering to this guideline will result in the PR being closed.