Spaces:
Sleeping
Sleeping
Update main.py
Browse files162 unmodified lines163164165166167168169170171172173162 unmodified lines'Authorization': 'Bearer ' + token}if (int(index)+1) % 3 == 1:data.max_new_tokens = data.max_new_tokenselif (int(index)+1) % 3 == 2:data.max_new_tokens = max(200, data.max_new_tokens - 200)else:data.max_new_tokens = data.max_new_tokens + 200for _ in range(max_retries):try:async with session.post(url, headers=headers, json=data) as response:162 unmodified lines163164165166167168169170171172173162 unmodified lines'Authorization': 'Bearer ' + token}if (int(index)+1) % 3 == 1:data['max_new_tokens'] = data['max_new_tokens']elif (int(index)+1) % 3 == 2:data['max_new_tokens'] = max(200, data['max_new_tokens'] - 200)else:data['max_new_tokens'] = data['max_new_tokens'] + 200for _ in range(max_retries):try:async with session.post(url, headers=headers, json=data) as response:
main.py+3-3