Spaces:
Sleeping
Sleeping
Download client.py from utkarsh134/FastAPI-Img2CSV: direct link, hf CLI and curl.
- Browser
- Download file 288 Bytes
-
https://huggingface.co/spaces/utkarsh134/FastAPI-Img2CSV/resolve/e529d7dd6a97e24a89a2186db1cd857f4e1dddec/client.py
- Command line
-
hf download hf://spaces/utkarsh134/FastAPI-Img2CSV@e529d7dd6a97e24a89a2186db1cd857f4e1dddec/client.py
-
curl -L -o client.py https://huggingface.co/spaces/utkarsh134/FastAPI-Img2CSV/resolve/e529d7dd6a97e24a89a2186db1cd857f4e1dddec/client.py
288 Bytes
| import boto3 | |
| import os | |
| from dotenv import load_dotenv | |
| load_dotenv() | |
| def get_textract_client(): | |
| return boto3.client("textract", aws_access_key_id=os.getenv("AWS_ACCESS_KEY_ID"), aws_secret_access_key=os.getenv("AWS_SECRET_ACCESS_KEY"), region_name=os.getenv("AWS_REGION") | |
| ) | |