Spaces:
Sleeping
Sleeping
File size: 394 Bytes
85614c8 effc604 85614c8 effc604 85614c8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | import spaces
import gradio as gr
@spaces.GPU(duration=1)
def zerogpu_compatibility() -> str:
"""
ZeroGPU compatibility hook.
Not required by the actual workflow.
"""
return "ZeroGPU runtime available."
demo = gr.Workflow(
graph="workflow.json",
bind={
"ZeroGPU Compatibility": zerogpu_compatibility
},
)
if __name__ == "__main__":
demo.launch() |