File size: 288 Bytes
d71a37b
 
 
8a6f8f0
d71a37b
8a6f8f0
 
d71a37b
 
 
 
 
 
8a6f8f0
5681e35
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr
from gradio.inputs import Textbox
from gradio.outputs import Textbox as TextOutput

def process(text):
    return f'Hi {text}'

interface = gr.Interface(
    fn=process,
    inputs=[Textbox()],
    outputs=[TextOutput()],
    theme='huggingface',
)

interface.launch()