1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-10 04:19:24 +02:00
dockerfiles/gradio/data/app.py

10 lines
170 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 + "!"
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch()