File size: 344 Bytes
c27acdb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import gradio as gr


def main(text):
    # A gradio function that lowercases text and returns it
    return text.lower()


# A simple gradio app for text
app = gr.Interface(
    main,
    inputs="text",
    outputs="text",
    title="Spaces Template Gradio",
    description="A template app for Hugging Face Spaces",
)
app.launch(debug=True)