aiqtech commited on
Commit
570234d
โ€ข
1 Parent(s): c720614

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -27,6 +27,9 @@ def card_authorization(onfftid, tot_amt, com_tax_amt, com_free_amt, com_vat_amt,
27
  else:
28
  return {"error": "์ž˜๋ชป๋œ ์นด๋“œ ์œ ํ˜•์ž…๋‹ˆ๋‹ค."}
29
 
 
 
 
30
  data = {
31
  "onfftid": onfftid,
32
  "tot_amt": tot_amt,
@@ -78,7 +81,11 @@ with gr.Blocks() as app:
78
  com_free_amt = gr.Number(label="๋น„๊ณผ์„ธ์Šน์ธ๊ธˆ์•ก")
79
  com_vat_amt = gr.Number(label="๋ถ€๊ฐ€์„ธ")
80
  card_no = gr.Textbox(label="์นด๋“œ๋ฒˆํ˜ธ")
81
- install_period = gr.Dropdown(choices=[f"{str(i).zfill(2)} - {i if i > 0 else '์ผ์‹œ๋ถˆ'}๊ฐœ์›”" for i in range(13)], label="ํ• ๋ถ€๊ธฐ๊ฐ„ ์„ ํƒ", value="00 - ์ผ์‹œ๋ถˆ")
 
 
 
 
82
  user_nm = gr.Textbox(label="๊ฒฐ์ œ์ž๋ช…")
83
  user_phone2 = gr.Textbox(label="๊ฒฐ์ œ์ž ์—ฐ๋ฝ์ฒ˜")
84
  product_nm = gr.Textbox(label="์ƒํ’ˆ๋ช…")
 
27
  else:
28
  return {"error": "์ž˜๋ชป๋œ ์นด๋“œ ์œ ํ˜•์ž…๋‹ˆ๋‹ค."}
29
 
30
+ # ํ• ๋ถ€๊ธฐ๊ฐ„ ์ฒ˜๋ฆฌ
31
+ install_period = install_period.split(' - ')[0] # "00 - ์ผ์‹œ๋ถˆ"์—์„œ "00"๋งŒ ์ถ”์ถœ
32
+
33
  data = {
34
  "onfftid": onfftid,
35
  "tot_amt": tot_amt,
 
81
  com_free_amt = gr.Number(label="๋น„๊ณผ์„ธ์Šน์ธ๊ธˆ์•ก")
82
  com_vat_amt = gr.Number(label="๋ถ€๊ฐ€์„ธ")
83
  card_no = gr.Textbox(label="์นด๋“œ๋ฒˆํ˜ธ")
84
+ install_period = gr.Dropdown(
85
+ choices=[f"{str(i).zfill(2)} - {'์ผ์‹œ๋ถˆ' if i == 0 else f'{i}๊ฐœ์›”'}" for i in range(13)],
86
+ label="ํ• ๋ถ€๊ธฐ๊ฐ„ ์„ ํƒ",
87
+ value="00 - ์ผ์‹œ๋ถˆ"
88
+ )
89
  user_nm = gr.Textbox(label="๊ฒฐ์ œ์ž๋ช…")
90
  user_phone2 = gr.Textbox(label="๊ฒฐ์ œ์ž ์—ฐ๋ฝ์ฒ˜")
91
  product_nm = gr.Textbox(label="์ƒํ’ˆ๋ช…")