gaspar-avit commited on
Commit
38b6aaf
·
1 Parent(s): ea80a9a

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -36,7 +36,7 @@ def layout(*args):
36
  bottom=0,
37
  margin=px(0, 0, 0, 0),
38
  width=percent(100),
39
- height=px(50),
40
  color="black",
41
  text_align="center",
42
  #height="auto",
@@ -71,9 +71,9 @@ def layout(*args):
71
 
72
  def footer():
73
  myargs = [
74
- "Made with ❤️ by ",
75
  link("https://www.linkedin.com/in/gaspar-avit/", "Gaspar Avit"),
76
- ]
77
  layout(*myargs)
78
 
79
 
@@ -136,11 +136,13 @@ if __name__ == "__main__":
136
 
137
  # Load classification model
138
  model = CatBoostClassifier() # parameters not required.
 
 
139
  for root, dirs, files in os.walk("./"):
140
  for file in files:
141
  if file.endswith(".cbm"):
142
  print(os.path.join(root, file))
143
- model.load_model(os.path.join(root, file))
144
 
145
  # Define inputs
146
  input_layout()
 
36
  bottom=0,
37
  margin=px(0, 0, 0, 0),
38
  width=percent(100),
39
+ height=px(10),
40
  color="black",
41
  text_align="center",
42
  #height="auto",
 
71
 
72
  def footer():
73
  myargs = [
74
+ "Made by ",
75
  link("https://www.linkedin.com/in/gaspar-avit/", "Gaspar Avit"),
76
+ ] #with ❤️
77
  layout(*myargs)
78
 
79
 
 
136
 
137
  # Load classification model
138
  model = CatBoostClassifier() # parameters not required.
139
+ model.load_model('./model.cbm')
140
+
141
  for root, dirs, files in os.walk("./"):
142
  for file in files:
143
  if file.endswith(".cbm"):
144
  print(os.path.join(root, file))
145
+ # model.load_model(os.path.join(root, file))
146
 
147
  # Define inputs
148
  input_layout()