aiqtech commited on
Commit
07cb86b
ยท
verified ยท
1 Parent(s): 59b1169

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -39,7 +39,7 @@ with gr.Blocks() as app:
39
  with gr.Tab("์นด๋“œ ๊ฒฐ์ œ ์Šน์ธ ์š”์ฒญ"):
40
  with gr.Row():
41
  with gr.Column(scale=1):
42
- onfftid = gr.Textbox(label="์˜จ์˜คํ”„์ฝ”๋ฆฌ์•„ TID", value="OFPT000000011017", disabled=True)
43
  tot_amt = gr.Number(label="๊ฒฐ์ œ๊ธˆ์•ก", placeholder="๊ธˆ์•ก์„ ์ž…๋ ฅํ•˜์„ธ์š”")
44
  com_tax_amt = gr.Number(label="๊ณผ์„ธ์Šน์ธ๊ธˆ์•ก", optional=True)
45
  com_free_amt = gr.Number(label="๋น„๊ณผ์„ธ์Šน์ธ๊ธˆ์•ก", optional=True)
@@ -56,16 +56,16 @@ with gr.Blocks() as app:
56
  password = gr.Textbox(label="์นด๋“œ ๋น„๋ฐ€๋ฒˆํ˜ธ ์•ž 2์ž๋ฆฌ", placeholder="๋น„๋ฐ€๋ฒˆํ˜ธ ์•ž 2์ž๋ฆฌ")
57
  card_nm = gr.Textbox(label="์นด๋“œ์‚ฌ๋ช…", optional=True, placeholder="์นด๋“œ์‚ฌ๋ช…์„ ์ž…๋ ฅํ•˜์„ธ์š”")
58
  order_no = gr.Textbox(label="์ฃผ๋ฌธ๋ฒˆํ˜ธ", optional=True, placeholder="์ฃผ๋ฌธ๋ฒˆํ˜ธ๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”")
59
- pay_type = gr.Textbox(label="๊ฒฐ์ œํƒ€์ž…", value="card", disabled=True)
60
 
61
  submit_button = gr.Button("๊ฒฐ์ œ ์Šน์ธ ์š”์ฒญ")
62
  result_area = gr.JSON(label="๊ฒฐ๊ณผ")
63
 
64
  submit_button.click(
65
  fn=card_authorization,
66
- inputs=[onfftid, tot_amt, com_tax_amt, com_free_amt, com_vat_amt, card_no, install_period,
67
  user_nm, user_phone2, product_nm, expire_date, cert_type, card_user_type,
68
- auth_value, password, card_nm, order_no, pay_type],
69
  outputs=result_area
70
  )
71
 
 
39
  with gr.Tab("์นด๋“œ ๊ฒฐ์ œ ์Šน์ธ ์š”์ฒญ"):
40
  with gr.Row():
41
  with gr.Column(scale=1):
42
+ onfftid = gr.Label(label="์˜จ์˜คํ”„์ฝ”๋ฆฌ์•„ TID", value="OFPT000000011017")
43
  tot_amt = gr.Number(label="๊ฒฐ์ œ๊ธˆ์•ก", placeholder="๊ธˆ์•ก์„ ์ž…๋ ฅํ•˜์„ธ์š”")
44
  com_tax_amt = gr.Number(label="๊ณผ์„ธ์Šน์ธ๊ธˆ์•ก", optional=True)
45
  com_free_amt = gr.Number(label="๋น„๊ณผ์„ธ์Šน์ธ๊ธˆ์•ก", optional=True)
 
56
  password = gr.Textbox(label="์นด๋“œ ๋น„๋ฐ€๋ฒˆํ˜ธ ์•ž 2์ž๋ฆฌ", placeholder="๋น„๋ฐ€๋ฒˆํ˜ธ ์•ž 2์ž๋ฆฌ")
57
  card_nm = gr.Textbox(label="์นด๋“œ์‚ฌ๋ช…", optional=True, placeholder="์นด๋“œ์‚ฌ๋ช…์„ ์ž…๋ ฅํ•˜์„ธ์š”")
58
  order_no = gr.Textbox(label="์ฃผ๋ฌธ๋ฒˆํ˜ธ", optional=True, placeholder="์ฃผ๋ฌธ๋ฒˆํ˜ธ๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”")
59
+ pay_type = gr.Label(label="๊ฒฐ์ œํƒ€์ž…", value="card")
60
 
61
  submit_button = gr.Button("๊ฒฐ์ œ ์Šน์ธ ์š”์ฒญ")
62
  result_area = gr.JSON(label="๊ฒฐ๊ณผ")
63
 
64
  submit_button.click(
65
  fn=card_authorization,
66
+ inputs=[onfftid.value, tot_amt, com_tax_amt, com_free_amt, com_vat_amt, card_no, install_period,
67
  user_nm, user_phone2, product_nm, expire_date, cert_type, card_user_type,
68
+ auth_value, password, card_nm, order_no, pay_type.value],
69
  outputs=result_area
70
  )
71