jslin09 commited on
Commit
f3b7227
·
1 Parent(s): cec024b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -9
app.py CHANGED
@@ -15,13 +15,7 @@ examples=[
15
  ]
16
 
17
  iface = gr.Interface.load(
18
- "huggingface/jslin09/bloom-560m-finetuned-fraud",
19
- description=description,
20
- examples=examples,
21
- api_key=api_key,
22
- ).queue()
23
-
24
- iface2 = gr.Interface(
25
  title="Drafting",
26
  inputs=[
27
  gr.Textbox(lines=10, label="Prompt", value="闕很大明知金融帳戶之存摺、提款卡及密碼係供自己使用之重要理財工具,"), # prompt
@@ -31,11 +25,14 @@ iface2 = gr.Interface(
31
  gr.Slider(0.0, 1.0, step=0.1, value=0.1), # presencePenalty
32
  gr.Slider(0.0, 1.0, step=0.1, value=0.1), # countPenalty
33
  ],
34
- outputs=gr.Textbox(label="Generated Output", lines=28),
 
 
 
35
  ).queue()
36
 
37
  demo = gr.TabbedInterface(
38
- [iface, iface2], ["分頁標籤"],
39
  title="Legal Document Drafting",
40
  )
41
 
 
15
  ]
16
 
17
  iface = gr.Interface.load(
18
+ "huggingface/jslin09/bloom-560m-finetuned-fraud",
 
 
 
 
 
 
19
  title="Drafting",
20
  inputs=[
21
  gr.Textbox(lines=10, label="Prompt", value="闕很大明知金融帳戶之存摺、提款卡及密碼係供自己使用之重要理財工具,"), # prompt
 
25
  gr.Slider(0.0, 1.0, step=0.1, value=0.1), # presencePenalty
26
  gr.Slider(0.0, 1.0, step=0.1, value=0.1), # countPenalty
27
  ],
28
+ outputs=gr.Textbox(label="生成的草稿", lines=28),
29
+ description=description,
30
+ examples=examples,
31
+ api_key=api_key,
32
  ).queue()
33
 
34
  demo = gr.TabbedInterface(
35
+ [iface], ["分頁標籤"],
36
  title="Legal Document Drafting",
37
  )
38