cbensimon HF Staff commited on
Commit
d71a37b
·
1 Parent(s): 1e00468

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from gradio.inputs import Textbox
3
+ from gradio.outputs import Textbox as TextOutput
4
+ def process(text):
5
+ return f'v5 Hi {text}'
6
+ interface = gr.Interface(
7
+ fn=process,
8
+ inputs=[Textbox()],
9
+ outputs=[TextOutput()],
10
+ theme='huggingface',
11
+ )
12
+ interface.launch()