Spaces:
Sleeping
Sleeping
File size: 307 Bytes
4f48282 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import modal
# Create an image and install dependencies directly
image = modal.Image.from_pip([
"gradio",
"torch",
"diffusers"
])
@modal.function(image=image)
def test_function():
import gradio
print("Gradio is installed successfully!")
if __name__ == "__main__":
test_function()
|