javaeeduke commited on
Commit
9910b64
·
verified ·
1 Parent(s): 40e2bec

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def generate(keyword):
4
+ return f"你输入的关键词是:{keyword}"
5
+
6
+ demo = gr.Interface(
7
+ fn=generate,
8
+ inputs="text",
9
+ outputs="text",
10
+ title="头条AI Agent",
11
+ description="输入关键词,自动生成头条文章"
12
+ )
13
+
14
+ demo.launch()