peiyi9979 commited on
Commit
b91d799
1 Parent(s): 806cc7a

Add application file

Browse files
Files changed (1) hide show
  1. app.py +5 -22
app.py CHANGED
@@ -1,24 +1,7 @@
1
- ### 欢迎使用坚果云Markdown
2
 
3
- ##### 新增图片上传功能
 
4
 
5
- 现在可以在文章中插入图片,将更丰富的内容分享给朋友了!
6
-
7
- - 您可以插入外链图片,或上传本地图片到文档中。
8
- - 从本地上传的图片不支持外链引用,您可以通过坚果云分享链接来发布图文预览。
9
- - 可上传的单张图片最大20M,支持PNG、JPG格式,使用时请留意账号流量或空间是否充足。
10
- - 若有其他疑问,欢迎咨询官网在线客服。
11
-
12
-
13
-
14
- ### Welcome to the Nutstore Markdown
15
-
16
- ##### New feature! Insert pictures in your articles now!
17
-
18
- You can insert pictures from external links, or upload ones.
19
-
20
- The pictures in the articles can not be used through external links. Please share your articles with the Nutstore share link.
21
-
22
- The maximum size of the picture to upload is 20M. PNG and JPG are better. Be sure that your traffic and space are enough if you want to add a lot of pictures in your article.
23
-
24
- Have any other questions, please contact our official customer service.
 
1
+ import gradio as gr
2
 
3
+ def greet(name):
4
+ return "Hello " + name + "!!"
5
 
6
+ iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
+ iface.launch()