ELin2025 opened a new pull request, #5567:
URL: https://github.com/apache/texera/pull/5567

   ### What changes were proposed in this PR?
   
   Add `HuggingFaceAudioUploadComponent`, a custom formly field type 
(`huggingface-audio-upload`) that provides:
   - An audio file picker that uploads to the Texera backend's 
`/huggingface/upload-audio` endpoint for server-side storage
   - Local audio preview/playback using a browser Object URL while upload is in 
progress
   - Storage of the returned server path in the formly form control
   - A guidance message explaining why audio is uploaded to backend storage 
rather than embedded in the workflow JSON
   
   This PR registers the component in `formly-config.ts` and declares it in 
`AppModule`. The component is not yet wired into the HuggingFace operator's 
property editor; the `jsonSchemaMapIntercept` mapping that routes the 
`audioInput` field to this component is added in the follow-up property-editor 
PR (PR 7).
   
   ### Any related issues, documentation, discussions?
   
   - Tracking issue: #5314 
   - Closes: #5314 
   - Stacked on: #5566 
   - Parent issue: #5041 
   
   ### How was this PR tested?
   
   2 unit tests added in `hugging-face-audio-upload.component.spec.ts` 
verifying the component class is defined and importable. Run with `ng test`.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Co-authored with Claude Opus 4.7


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to