Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /rpidhe_chainlit-pypi /cypress /e2e /audio_element /main.py
| import os | |
| import chainlit as cl | |
| # Get the directory where the script is located | |
| script_directory = os.path.dirname(os.path.abspath(__file__)) | |
| # Create absolute path to the audio file | |
| audio_path = os.path.join(script_directory, "../../fixtures/example.mp3") | |
| async def start(): | |
| elements = [cl.Audio(name="example.mp3", path=audio_path)] | |
| await cl.Message(content="This message has an audio", elements=elements).send() | |
Xet Storage Details
- Size:
- 446 Bytes
- Xet hash:
- 197e91f38c486292da5309f55a5a5496ff7e8542232e7dfb7cdf2e7266cf647b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.