Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|