Update app.py
Browse files
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.
|
| 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.
|
| 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 |
|