Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -6,11 +6,21 @@ drafting_examples = [
|
|
6 |
["闕很大明知金融帳戶之存摺、提款卡及密碼係供自己使用之重要理財工具,"],
|
7 |
["森上梅前明知其無資力支付酒店消費,亦無付款意願,竟意圖為自己不法之所有,"]
|
8 |
]
|
|
|
|
|
9 |
|
10 |
dreating_demo = gr.Interface.load(
|
11 |
"huggingface/jslin09/bloom-560m-finetuned-fraud",
|
|
|
12 |
title=None,
|
13 |
examples=drafting_examples,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
description="Give me something to say!",
|
15 |
)
|
16 |
|
|
|
6 |
["闕很大明知金融帳戶之存摺、提款卡及密碼係供自己使用之重要理財工具,"],
|
7 |
["森上梅前明知其無資力支付酒店消費,亦無付款意願,竟意圖為自己不法之所有,"]
|
8 |
]
|
9 |
+
def greet(name):
|
10 |
+
return drafting_examples[1]
|
11 |
|
12 |
dreating_demo = gr.Interface.load(
|
13 |
"huggingface/jslin09/bloom-560m-finetuned-fraud",
|
14 |
+
fn=greet
|
15 |
title=None,
|
16 |
examples=drafting_examples,
|
17 |
+
inputs=gr.Textbox(
|
18 |
+
label="Text 1",
|
19 |
+
info="Initial text",
|
20 |
+
lines=3,
|
21 |
+
value=drafting_examples[1],
|
22 |
+
),
|
23 |
+
outputs="text",
|
24 |
description="Give me something to say!",
|
25 |
)
|
26 |
|