MatteoScript commited on
Commit
772b703
·
verified ·
1 Parent(s): a5aa679

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -162,9 +162,9 @@ async def make_request(session, token, data, url, i, max_retries=3):
162
  'Content-Type': 'application/json',
163
  'Authorization': 'Bearer ' + token
164
  }
165
- if (i+1) % 3 == 1:
166
  data.max_new_tokens = data.max_new_tokens
167
- elif (i+1) % 3 == 2:
168
  data.max_new_tokens = max(200, data.max_new_tokens - 200)
169
  else:
170
  data.max_new_tokens = data.max_new_tokens + 200
 
162
  'Content-Type': 'application/json',
163
  'Authorization': 'Bearer ' + token
164
  }
165
+ if (int(i)+1) % 3 == 1:
166
  data.max_new_tokens = data.max_new_tokens
167
+ elif (int(i)+1) % 3 == 2:
168
  data.max_new_tokens = max(200, data.max_new_tokens - 200)
169
  else:
170
  data.max_new_tokens = data.max_new_tokens + 200