test / app.py
changxin's picture
Update app.py
d9217c2
raw
history blame
312 Bytes
import gradio as gr
def fx(x:str):
return '欢迎浏览:'+x
gr.Dataframe(headers=['项目','数据'],interactive=True)
text_input=gr.Textbox(placeholder='请输入测试字符串',label="请输入测试内容")
demo=gr.Interface(fx, inputs=text_input, outputs=gr.Textbox(label="输出"))
demo.launch()