sachin commited on
Commit
9e8036b
·
1 Parent(s): 22e8f03

add-time out

Browse files
Files changed (1) hide show
  1. src/server/main.py +1 -1
src/server/main.py CHANGED
@@ -117,7 +117,7 @@ async def call_external_translation(sentences: List[str], src_lang: str, tgt_lan
117
  "accept": "application/json",
118
  "Content-Type": "application/json"
119
  },
120
- timeout=30
121
  )
122
  response.raise_for_status()
123
  translations = response.json().get("translations", [])
 
117
  "accept": "application/json",
118
  "Content-Type": "application/json"
119
  },
120
+ timeout=60
121
  )
122
  response.raise_for_status()
123
  translations = response.json().get("translations", [])