Update wav files for FunASR Nano - #3038
Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughUpdates the upload-models workflow by switching branches, enabling previously disabled steps for model collection and publishing, and adding new audio sample downloads. Also updates the onnxruntime SHA256 hash for macOS universal builds. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~15 minutes Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary of ChangesHello @csukuangfj, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request updates the SHA256 checksum for the ONNX Runtime static library used in macOS builds. This change is crucial for maintaining the integrity and security of the build process by ensuring that the downloaded library matches the expected content. It's worth noting that the pull request title, "Update wav files for FunASR Nano," appears to be a mismatch with the actual changes implemented in the patch. Highlights
Ignored Files
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request updates the SHA256 hash for the onnxruntime dependency for macOS universal static builds. A significant issue is that the pull request title, 'Update wav files for FunASR Nano', is misleading and does not describe the actual changes. For better project history and clarity, please update the title to something more descriptive, such as 'Fix: Update onnxruntime hash for osx-universal-static'. I have also left one comment regarding code maintainability.
| set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.23.2/onnxruntime-osx-universal2-static_lib-1.23.2.zip") | ||
| set(onnxruntime_URL2 "https://hf-mirror.com/csukuangfj/onnxruntime-libs/resolve/main/1.23.2/onnxruntime-osx-universal2-static_lib-1.23.2.zip") | ||
| set(onnxruntime_HASH "SHA256=00816fda16166859fed41dacb786d3dfc3323bbc1a8fa57a235922f597953986") | ||
| set(onnxruntime_HASH "SHA256=9ea206a621d6e5550ddb9de0b96c4f666b074620f5c685b0479b5fa02c0bba76") |
There was a problem hiding this comment.
To improve maintainability and simplify future dependency updates, it would be beneficial to define the onnxruntime version as a variable. This variable could then be used to construct the URLs and filenames, avoiding repetition and reducing the chance of errors during version bumps.
For example:
set(ONNXRUNTIME_VERSION "1.23.2")
set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v${ONNXRUNTIME_VERSION}/onnxruntime-osx-universal2-static_lib-${ONNXRUNTIME_VERSION}.zip")
set(onnxruntime_URL2 "https://hf-mirror.com/csukuangfj/onnxruntime-libs/resolve/main/${ONNXRUNTIME_VERSION}/onnxruntime-osx-universal2-static_lib-${ONNXRUNTIME_VERSION}.zip")
set(onnxruntime_HASH "SHA256=9ea206a621d6e5550ddb9de0b96c4f666b074620f5c685b0479b5fa02c0bba76")This approach could also be consistently applied to other similar files like onnxruntime-osx-arm64-static.cmake and onnxruntime-osx-x86_64-static.cmake.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.