samithcs commited on
Commit
0c6111d
·
verified ·
1 Parent(s): 0a90a84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -177,3 +177,9 @@ def detect_anomaly(input_data: AnomalyInput):
177
  return {"anomaly_detected": bool(prediction)}
178
  except Exception as e:
179
  return {"error": str(e)}
 
 
 
 
 
 
 
177
  return {"anomaly_detected": bool(prediction)}
178
  except Exception as e:
179
  return {"error": str(e)}
180
+
181
+
182
+
183
+ if __name__ == "__main__":
184
+ import uvicorn
185
+ uvicorn.run(app, host="0.0.0.0", port=7860)