Spaces:
Build error
Build error
route index
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from PIL import Image
|
|
8 |
import io
|
9 |
import numpy as np
|
10 |
|
11 |
-
app = FastAPI()
|
12 |
use_gpu = False
|
13 |
output_dir = 'output'
|
14 |
|
@@ -26,10 +26,6 @@ def get_ocr(lang, use_gpu=False):
|
|
26 |
|
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(
|
|
|
8 |
import io
|
9 |
import numpy as np
|
10 |
|
11 |
+
app = FastAPI(docs_url='/')
|
12 |
use_gpu = False
|
13 |
output_dir = 'output'
|
14 |
|
|
|
26 |
|
27 |
return ocr_cache.get(lang)
|
28 |
|
|
|
|
|
|
|
|
|
29 |
|
30 |
@app.post("/ocr")
|
31 |
async def create_upload_file(
|