Spaces:
Building
on
L4
Building
on
L4
sachin
commited on
Commit
·
9e8036b
1
Parent(s):
22e8f03
add-time out
Browse files- 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=
|
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", [])
|