ahd75 commited on
Commit
1dffa15
·
verified ·
1 Parent(s): 204f908

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -36,6 +36,10 @@ print("Model loaded successfully.")
36
  def read_root():
37
  return {"status": "ok", "message": "PaddleOCR-VL API is running."}
38
 
 
 
 
 
39
  @app.post("/ocr")
40
  def run_ocr(ocr_input: OcrInput):
41
  try:
 
36
  def read_root():
37
  return {"status": "ok", "message": "PaddleOCR-VL API is running."}
38
 
39
+ @app.get("/test")
40
+ def test_endpoint():
41
+ return {"message": "Hugging Face - successful GET of /test"}
42
+
43
  @app.post("/ocr")
44
  def run_ocr(ocr_input: OcrInput):
45
  try: