Spaces:
Sleeping
Sleeping
File size: 269 Bytes
4f48282 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import modal
import os
app = modal.App("test-volume")
@app.function(volumes={"/my_vol": modal.Volume.from_name("flux-model-vol")})
def test_func():
print("Contents of the volume:", os.listdir("/my_vol"))
@app.local_entrypoint()
def main():
test_func.call()
|