Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -51,4 +51,5 @@ async def detect_energy_anomalies_from_data(file: UploadFile = File(...)):
|
|
51 |
result = detect_energy_anomalies(file_location)
|
52 |
return {"energy_anomalies": result}
|
53 |
except Exception as e:
|
54 |
-
raise HTTPException(status_code=500, detail=f"Error processing energy anomaly detection: {str(e)}")
|
|
|
|
51 |
result = detect_energy_anomalies(file_location)
|
52 |
return {"energy_anomalies": result}
|
53 |
except Exception as e:
|
54 |
+
raise HTTPException(status_code=500, detail=f"Error processing energy anomaly detection: {str(e)}")
|
55 |
+
|