Inference.
Browse filesFiles changed (2)
171 unmodified lines172173174175176177178171 unmodified linesresults = requests.get(collection_in.location)pages = convert_from_bytes(results.content, 500, None, 1, 1)pages[0].save(tmp_file)tasks = label_studio_project.import_tasks(tmp_file)os.remove(tmp_file)171 unmodified lines172173174175176177178179180181182183171 unmodified linesresults = requests.get(collection_in.location)pages = convert_from_bytes(results.content, 500, None, 1, 1)cover = pages[0]width, height = cover.sizetarget_width = round(width - (width * 0.75))target_height = round(height - (height * 0.75))cover = cover.resize((target_width, target_height), PIL.Image.ANTIALIAS)cover.save(tmp_file, optimize=True, quality=95)tasks = label_studio_project.import_tasks(tmp_file)os.remove(tmp_file)
19 unmodified lines202122232425262728293031323319 unmodified lines- pgvectorenvironment:- PYTHON_ENV=development- OPENAI_API_KEY=${OPENAI_API_KEY}- SENTRY_DSN=${SENTRY_DSN}- POSTGRES_SERVER=pgvector- POSTGRES_USER=docker- POSTGRES_PASSWORD=docker- POSTGRES_DB=langchain- LABEL_STUDIO_URL=http://labelstudio:8080- LABEL_STUDIO_API_KEY=edf0ffe6497c4388fdd712cb34d71377d889bcec- LABEL_STUDIO_PROJECT_ID=2build:context: ./19 unmodified lines202122232425262728293031323319 unmodified lines- pgvectorenvironment:- PYTHON_ENV=development- OPENAI_API_KEY=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- SENTRY_DSN=${SENTRY_DSN}- POSTGRES_SERVER=pgvector- POSTGRES_USER=docker- POSTGRES_PASSWORD=docker- POSTGRES_DB=langchain- LABEL_STUDIO_URL=http://labelstudio:8080- LABEL_STUDIO_API_KEY=62c8a636cde07272e232a5af854fc02d91b77509- LABEL_STUDIO_PROJECT_ID=2build:context: ./
app/api/api_v1/endpoints/openai.py+6-1
docker-compose.yaml+2-2