CCockrum commited on
Commit
f63c9e9
·
verified ·
1 Parent(s): 2bd5f10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -5
app.py CHANGED
@@ -329,8 +329,15 @@ class OutlierDetective:
329
 
330
  return report
331
 
332
- if __name__ == "__main__":
333
- detector = OutlierDetective()
334
- df = detector.load_data("your_dataset.csv") # <-- Replace with a real file
335
- detector.analyze_outliers()
336
- print(detector.generate_outlier_report())
 
 
 
 
 
 
 
 
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()