Spaces:
Sleeping
Sleeping
Gabriel
commited on
Commit
·
7dedc87
1
Parent(s):
0403169
debug
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def main(job_title, company_name, company_desc, job_desc,
|
|
28 |
job_requirement, salary, location, employment_type,
|
29 |
department):
|
30 |
df = pd.DataFrame(columns=indep_cols)
|
31 |
-
df.loc[
|
32 |
job_requirement, salary, location, employment_type,
|
33 |
department]
|
34 |
|
@@ -39,7 +39,7 @@ def main(job_title, company_name, company_desc, job_desc,
|
|
39 |
vals,indices = t_indep.max(dim=0)
|
40 |
t_indep = t_indep / vals
|
41 |
# return calc_preds(coeffs, t_indep)
|
42 |
-
return df.loc
|
43 |
|
44 |
iface = gr.Interface(
|
45 |
fn=main,
|
|
|
28 |
job_requirement, salary, location, employment_type,
|
29 |
department):
|
30 |
df = pd.DataFrame(columns=indep_cols)
|
31 |
+
df.loc[len(df)] = [job_title, company_name, company_desc, job_desc,
|
32 |
job_requirement, salary, location, employment_type,
|
33 |
department]
|
34 |
|
|
|
39 |
vals,indices = t_indep.max(dim=0)
|
40 |
t_indep = t_indep / vals
|
41 |
# return calc_preds(coeffs, t_indep)
|
42 |
+
return df.loc
|
43 |
|
44 |
iface = gr.Interface(
|
45 |
fn=main,
|