File size: 240 Bytes
00d9204
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
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")
demo.launch(api_name="predict")