Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -103,10 +103,14 @@ def greet(text):
|
|
103 |
|
104 |
|
105 |
|
106 |
-
|
|
|
|
|
|
|
|
|
107 |
|
108 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text", title="text-classification app",
|
109 |
-
layout="vertical", description="This is a demo for text classification.")
|
110 |
demo.launch()
|
111 |
|
112 |
#
|
|
|
103 |
|
104 |
|
105 |
|
106 |
+
examples = [
|
107 |
+
["苹果发布iPhone18", "科技类"],
|
108 |
+
["小明高考考了700分", "教育类"],
|
109 |
+
["英雄联盟世界赛即将开始", "游戏类"]
|
110 |
+
]
|
111 |
|
112 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text", title="text-classification app",
|
113 |
+
layout="vertical", description="This is a demo for text classification.",examples=examples)
|
114 |
demo.launch()
|
115 |
|
116 |
#
|