sachin commited on
Commit
22e8f03
·
1 Parent(s): 33f858d

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=10
121
  )
122
  response.raise_for_status()
123
  translations = response.json().get("translations", [])
 
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", [])