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

Update app.py

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