dcd018 commited on
Commit
d52d3dc
·
1 Parent(s): 3f880e7

Inference.

Browse files
Files changed (1) hide show
  1. app/api/api_v1/endpoints/openai.py +2 -1
app/api/api_v1/endpoints/openai.py CHANGED
@@ -92,7 +92,8 @@ def embed(db: Session, payload: schemas.LabelStudio):
92
 
93
  response = requests.get(
94
  "{}/api/projects/{}/export?export_type=COCO&ids[]={}".format(settings.LABEL_STUDIO_URL, label_studio_project.id, task_id),
95
- headers={"Authorization": "Token {}".format(settings.LABEL_STUDIO_API_KEY)})
 
96
 
97
  #label_studio_project.export_tasks("COCO", False, True, [task_id], tmp_archive)
98
 
 
92
 
93
  response = requests.get(
94
  "{}/api/projects/{}/export?export_type=COCO&ids[]={}".format(settings.LABEL_STUDIO_URL, label_studio_project.id, task_id),
95
+ headers={"Authorization": "Token {}".format(settings.LABEL_STUDIO_API_KEY)},
96
+ timeout=(10,200))
97
 
98
  #label_studio_project.export_tasks("COCO", False, True, [task_id], tmp_archive)
99