liuyuqi-dellpc 1 year ago
parent
commit
571ba25df8
3 changed files with 7 additions and 0 deletions
  1. 7 0
      app.py
  2. 0 0
      packages.txt
  3. 0 0
      requirements.txt

+ 7 - 0
app.py

@@ -0,0 +1,7 @@
+import gradio as gr
+
+def greet(name):
+    return "Hello " + name + "!!"
+
+iface = gr.Interface(fn=greet, inputs="text", outputs="text")
+iface.launch()

+ 0 - 0
packages.txt


+ 0 - 0
requirements.txt