shane666 commited on
Commit
3a7225e
·
1 Parent(s): 788b647

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def Tree_Detection(sample):
47
  special_characters=True)
48
 
49
  graph = pydotplus.graph_from_dot_data(dot_data.getvalue())
50
- img = graph.write_jpg("tree.jpg") # 保存绘制好的决策树,以JPG的形式存储。
51
 
52
  result = f'The fault type is:{clf.predict([sample])[0]}' # 预测
53
 
 
47
  special_characters=True)
48
 
49
  graph = pydotplus.graph_from_dot_data(dot_data.getvalue())
50
+ #img = graph.write_jpg("tree.jpg") # 保存绘制好的决策树,以JPG的形式存储。
51
 
52
  result = f'The fault type is:{clf.predict([sample])[0]}' # 预测
53