Spaces:
Running
Running
route index
Browse files
app.py
CHANGED
@@ -27,6 +27,10 @@ def get_ocr(lang, use_gpu=False):
|
|
27 |
return ocr_cache.get(lang)
|
28 |
|
29 |
|
|
|
|
|
|
|
|
|
30 |
@app.post("/ocr")
|
31 |
async def create_upload_file(
|
32 |
file: UploadFile = File(...),
|
|
|
27 |
return ocr_cache.get(lang)
|
28 |
|
29 |
|
30 |
+
@app.get("/")
|
31 |
+
async def home():
|
32 |
+
return 'Hi huggingface!'
|
33 |
+
|
34 |
@app.post("/ocr")
|
35 |
async def create_upload_file(
|
36 |
file: UploadFile = File(...),
|