pere commited on
Commit
21363bd
·
1 Parent(s): 6fde455

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)