Spaces:
Sleeping

nlt-workflow / run.py
divergent-tech's picture
Update run.py
85614c8 verified
Raw History Blame Contribute Delete
394 Bytes
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()