Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -329,8 +329,15 @@ class OutlierDetective:
|
|
| 329 |
|
| 330 |
return report
|
| 331 |
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 329 |
|
| 330 |
return report
|
| 331 |
|
| 332 |
+
if __name__ == "__main__":
|
| 333 |
+
def run_outlier_detection(file):
|
| 334 |
+
detector = OutlierDetective()
|
| 335 |
+
df = detector.load_data(file.name)
|
| 336 |
+
detector.analyze_outliers()
|
| 337 |
+
return detector.generate_outlier_report()
|
| 338 |
+
|
| 339 |
+
iface = gr.Interface(fn=run_outlier_detection,
|
| 340 |
+
inputs=gr.File(label="Upload a dataset"),
|
| 341 |
+
outputs="text",
|
| 342 |
+
title="Outlier Detection App")
|
| 343 |
+
iface.launch()
|