Skip to content

Commit

Permalink
Fix: host for ai-annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish7515 committed Jul 15, 2024
1 parent dec9763 commit 3b21c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvat/apps/engine/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2247,7 +2247,7 @@ def request_ai_annotation(self, request):
job.save()

# Iterate over segments and save to the model
ai_annotation_host = os.getenv('AI_ANNOTATION_HOST', '35.208.178.37')
ai_annotation_host = os.getenv('AI_ANNOTATION_HOST', 'localhost')
ai_annotation_port = int(os.getenv('AI_ANNOTATION_PORT', "8000"))
url = f"http://{ai_annotation_host}:{ai_annotation_port}/transcript"
r = requests.post(url, json={ "jobId" : job_id, "lang" : lang, "authToken" : authHeader, "background_task_id" : background_task_id})
Expand Down

0 comments on commit 3b21c34

Please sign in to comment.