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

10 lines
194 B
Python
Raw Normal View History

2024-04-12 05:51:53 +02:00
#!/usr/bin/env python
import gradio as gr
def greet(name):
return "Hello " + name + "!"
2024-04-12 06:05:05 +02:00
demo = gr.Interface(fn=greet, inputs="text", outputs="text", allow_flagging="never")
2024-04-12 05:51:53 +02:00
demo.launch()