d089c9265002f9be337e790d2384ba7609072fed
* WebRTC and YOLO example (#1176) webrtc example using aiortc and yolo * attempt to fix frontmatter * trying a different pattern for the cmd arg with m flag * address review comments * fix github links and add suggestions from warnings for huggingface hub and web_url vs get_web_url * run precommit hooks * move test to separate file * move test to separate file * why did changes from modal_webrtc not commit previously? * change testing file name to not trigger pytest directly * change cmd in front matter to change new file name * fix typehint for peer class variable and move so we can use ModalWebRtcPeer as type * rename test file and ignore in pyproject pytest options * better signaling server doct string * update docstrings and change how we specificy the modal peer class * revert change in workflow from local testing * change cmd to match test file name * debug checking provided modal peer class is subsclass of ModalWebRtcPeer * change negotation to signaling in copy/diagrams, remove deploy:true frontmatter * close revision of copy * remove print statement and add information to test fail message * close read and revision of copy * add region note and increase ws connection timeout * address jacks comments * make diagrams more modal-style * add tag for lamda-test opt-out reason * update fastrtc example * add video and link to demo, edit text --------- Co-authored-by: Ben Shababo <shababo@Bens-MacBook-Air.local> Co-authored-by: Charles Frye <charles@modal.com>
…
Modal Examples
This is a collection of examples for Modal. Use these examples to learn Modal and build your own robust and scalable applications.
Usage
First, sign up for a free account at modal.com and follow
the setup instructions to install the modal package and set your API key.
The examples are organized into several folders based on their category. You can generally run the files in any folder much like you run ordinary Python programs, with a command like:
modal run 01_getting_started/hello_world.py
Although these scripts are run on your local machine, they'll communicate with Modal and run in our cloud, spawning serverless containers on demand.
Examples
01_getting_started/through14_clusters/provide a guided tour through Modal's concepts and capabilities.misc/contains uncategorized, miscellaneous examples.
These examples are continuously tested for correctness against Python 3.11.
License
The MIT license.
Languages
Python
93.9%
JavaScript
2.6%
HTML
1.7%
TypeScript
1.2%
Jupyter Notebook
0.3%
Other
0.2%