Spaces:
Sleeping
Sleeping
Update main.py
Browse files198 unmodified lines199200201202203204205206207208198 unmodified linesdata['max_new_tokens'] = max(200, data['max_new_tokens'] - 200)else:data['max_new_tokens'] = data['max_new_tokens'] + 200timeout = aiohttp.ClientTimeout(total=1000)for _ in range(max_retries):try:async with session.post(url, headers=headers, json=data, timeout=timeout) as response:response.raise_for_status()try:result_data = await response.json()198 unmodified lines199200201202203204205206207198 unmodified linesdata['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:response.raise_for_status()try:result_data = await response.json()
main.py+1-2