import spaces @spaces.GPU def fake_func(): pass import gradio as gr demo = gr.Interface(fn=fake_func, inputs="text", outputs="text")