File size: 182 Bytes
8a93931
4a1d381
8a93931
4a1d381
8a93931
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import gradio as gr
import spaces

@spaces.GPU
def predict(text):
    return text.upper()

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

demo.launch()