Keytaro commited on
Commit
45d98f0
·
1 Parent(s): c676b5e

add Japanese Translation

Browse files
Files changed (1) hide show
  1. app.py +18 -18
app.py CHANGED
@@ -71,22 +71,22 @@ def predict_term_deposit(age, duration, cc_contact_freq, days_since_pc, pc_conta
71
  with log_file.open("a") as f:
72
  f.write(json.dumps(
73
  {
74
- 'Age': age,
75
- 'Duration(Sec)': duration,
76
- 'CC Contact Freq': cc_contact_freq,
77
- 'Days Since PC': days_since_pc,
78
- 'PC Contact Freq': pc_contact_freq,
79
- 'Job': job,
80
- 'Marital Status': marital_status,
81
- 'Education': education,
82
- 'Defaulter': defaulter,
83
- 'Home Loan': home_loan,
84
- 'Personal Loan': personal_loan,
85
- 'Communication Type': communication_type,
86
- 'Last Month Contacted': last_contacted,
87
- 'Day of Week': day_of_week,
88
- 'PC Outcome': pc_outcome,
89
- 'prediction': prediction[0]
90
  }
91
  ))
92
  f.write("\n")
@@ -111,8 +111,8 @@ demo = gr.Interface(
111
  day_of_week_input,
112
  pc_outcome_input],
113
  outputs=model_output,
114
- title="Term Deposit Prediction",
115
- description="This API allows you to predict the person who are going to likely subscribe the term deposit",
116
  allow_flagging="auto",
117
  concurrency_limit=8
118
  )
 
71
  with log_file.open("a") as f:
72
  f.write(json.dumps(
73
  {
74
+ 'Age / 顧客の年齢': age,
75
+ 'Duration(Sec) / 通話時間(秒)、最後に連絡した時の通話の長さ(秒単位)': duration,
76
+ 'CC Contact Freq / クレジットカード接触頻度': cc_contact_freq,
77
+ 'Days Since PC / 前回連絡からの日数': days_since_pc,
78
+ 'PC Contact Freq / 過去の接触頻度': pc_contact_freq,
79
+ 'Job / 職業(admin=事務職)': job,
80
+ 'Marital Status / 婚姻状況': marital_status,
81
+ 'Education / 学歴': education,
82
+ 'Defaulter / 債務不履行者': defaulter,
83
+ 'Home Loan / 顧客が住宅ローンを持っているか': home_loan,
84
+ 'Personal Loan / 顧客が個人ローンを持っているか': personal_loan,
85
+ 'Communication Type / 連絡手段のタイプ': communication_type,
86
+ 'Last Month Contacted / 最終接触月': last_contacted,
87
+ 'Day of Week / 最後に接触した日の曜日': day_of_week,
88
+ 'PC Outcome / 過去の結果': pc_outcome,
89
+ 'prediction / 予測': prediction[0]
90
  }
91
  ))
92
  f.write("\n")
 
111
  day_of_week_input,
112
  pc_outcome_input],
113
  outputs=model_output,
114
+ title="Term Deposit Prediction / 定期預金予測",
115
+ description="This API allows you to predict the person who are going to likely subscribe the term deposit / このAPIは、定期預金に申し込む可能性の高い人を予測することができます。",
116
  allow_flagging="auto",
117
  concurrency_limit=8
118
  )