import spaces import gradio as gr @spaces.GPU def generate(prompt): return 'hello, world' gr.Interface( fn=generate, inputs=gr.Text(), outputs=gr.Gallery(), ).launch()