jslin09 commited on
Commit
1904287
·
1 Parent(s): 4be830b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -9,16 +9,20 @@ headers = {"Authorization": "Bearer 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"} # Re
9
 
10
  description = "Legal Document Drafting with BLOOM"
11
  api_key="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"
 
 
 
 
12
 
13
  iface = gr.Interface.load("huggingface/jslin09/bloom-560m-finetuned-fraud",
14
- title="Legal Document Drafting",
15
  description=description,
16
- examples=[["闕很大明知金融帳戶之存摺、提款卡及密碼係供自己使用之重要理財工具,"],["森上梅前明知其無資力支付酒店消費,亦無付款意願,竟意圖為自己不法之所有,"]],
17
  api_key=api_key,
18
  ).queue()
19
 
20
  demo = gr.TabbedInterface(
21
- [iface], ["Generative"],
22
  title="Legal Document Drafting",
23
  )
24
 
 
9
 
10
  description = "Legal Document Drafting with BLOOM"
11
  api_key="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"
12
+ examples=[
13
+ ["闕很大明知金融帳戶之存摺、提款卡及密碼係供自己使用之重要理財工具,"],
14
+ ["森上梅前明知其無資力支付酒店消費,亦無付款意願,竟意圖為自己不法之所有,"]
15
+ ]
16
 
17
  iface = gr.Interface.load("huggingface/jslin09/bloom-560m-finetuned-fraud",
18
+ title="Drafting",
19
  description=description,
20
+ examples=examples,
21
  api_key=api_key,
22
  ).queue()
23
 
24
  demo = gr.TabbedInterface(
25
+ [iface], ["分頁標籤"],
26
  title="Legal Document Drafting",
27
  )
28