2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 21:33:02 +01:00

add gradio

This commit is contained in:
kev
2024-04-12 11:51:53 +08:00
parent 25a5e67907
commit c86b7a5400
5 changed files with 50 additions and 0 deletions

9
gradio/data/app.py Normal file
View File

@@ -0,0 +1,9 @@
#!/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()