chryzxc commited on
Commit
4f729af
·
verified ·
1 Parent(s): 1b03049

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -16,6 +16,10 @@ tokenizer = AutoTokenizer.from_pretrained(
16
  # Load ONNX model
17
  session = InferenceSession("model.onnx")
18
 
 
 
 
 
19
  @app.post("/api/predict")
20
  async def predict(text: str):
21
  try:
 
16
  # Load ONNX model
17
  session = InferenceSession("model.onnx")
18
 
19
+ @app.get("/")
20
+ def read_root():
21
+ return {"status": "ONNX Model API is running"}
22
+
23
  @app.post("/api/predict")
24
  async def predict(text: str):
25
  try: