Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|