Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -78,7 +78,7 @@ def vision(file_content):
|
|
78 |
|
79 |
|
80 |
@app.post("/get_ocr_data/")
|
81 |
-
async def get_data(
|
82 |
#try:
|
83 |
# Determine the file type by reading the first few bytes
|
84 |
file_content = await input_file.read()
|
|
|
78 |
|
79 |
|
80 |
@app.post("/get_ocr_data/")
|
81 |
+
async def get_data(input_file: UploadFile = File(...)):
|
82 |
#try:
|
83 |
# Determine the file type by reading the first few bytes
|
84 |
file_content = await input_file.read()
|