Browse Source

Update 'README.md'

天问 1 year ago
parent
commit
c1de37de39
1 changed files with 13 additions and 0 deletions
  1. 13 0
      README.md

+ 13 - 0
README.md

@@ -1,2 +1,15 @@
 # gradio
+gradio 快速创建一个机器学习模型 demo web项目。
 
+pip install gradio
+
+
+```
+import gradio as gr
+def sketch_recognition(img):
+    pass# Implement your sketch recognition model here...
+
+gr.Interface(fn=sketch_recognition, inputs="sketchpad", outputs="label").launch()
+
+```
+launch() 启动一个web项目,端口默认3000