Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def translate(text, wait=True):
|
|
| 12 |
payload = {
|
| 13 |
"inputs": text,
|
| 14 |
"options": {
|
| 15 |
-
"wait_for_model": wait
|
| 16 |
}
|
| 17 |
}
|
| 18 |
response = requests.post(API_URL, headers=headers, json=payload)
|
|
|
|
| 12 |
payload = {
|
| 13 |
"inputs": text,
|
| 14 |
"options": {
|
| 15 |
+
"wait_for_model": not wait
|
| 16 |
}
|
| 17 |
}
|
| 18 |
response = requests.post(API_URL, headers=headers, json=payload)
|