jslin09 commited on
Commit
1284fa0
·
1 Parent(s): 1904287

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -19,6 +19,15 @@ iface = gr.Interface.load("huggingface/jslin09/bloom-560m-finetuned-fraud",
19
  description=description,
20
  examples=examples,
21
  api_key=api_key,
 
 
 
 
 
 
 
 
 
22
  ).queue()
23
 
24
  demo = gr.TabbedInterface(
 
19
  description=description,
20
  examples=examples,
21
  api_key=api_key,
22
+ inputs=[
23
+ gr.Textbox(lines=10, label="Prompt", value="闕很大明知金融帳戶之存摺、提款卡及密碼係供自己使用之重要理財工具,"), # prompt
24
+ gr.Slider(10, 200, step=10, value=100), # token_count
25
+ gr.Slider(0.2, 2.0, step=0.1, value=1.0), # temperature
26
+ gr.Slider(0.0, 1.0, step=0.05, value=0.8), # top_p
27
+ gr.Slider(0.0, 1.0, step=0.1, value=0.1), # presencePenalty
28
+ gr.Slider(0.0, 1.0, step=0.1, value=0.1), # countPenalty
29
+ ],
30
+ outputs=gr.Textbox(label="Generated Output", lines=28),
31
  ).queue()
32
 
33
  demo = gr.TabbedInterface(