File size: 265 Bytes
00d9204
 
 
 
 
 
63f26f8
 
00d9204
1
2
3
4
5
6
7
8
9
10
import gradio as gr
print("Gradio version:", gr.__version__)

def parse_spatial(text):
    return f"[Parsed Spatial Info] {text.upper()}"

demo = gr.Interface(fn=parse_spatial, inputs="text", outputs="text", allow_flagging="never"
)
demo.launch(api_name="predict")