File size: 221 Bytes
77c990c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr
import spaces


@spaces.GPU(duration=5)
def gpu_probe(x):
    return x


def ping(name: str) -> str:
    return f"ok {name}"


demo = gr.Interface(fn=ping, inputs="text", outputs="text")
demo.launch()