1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/gradio/data/app.py
2024-04-12 12:05:05 +08:00

10 lines
194 B
Python

#!/usr/bin/env python
import gradio as gr
def greet(name):
return "Hello " + name + "!"
demo = gr.Interface(fn=greet, inputs="text", outputs="text", allow_flagging="never")
demo.launch()