Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -285,7 +285,7 @@ async def GeneraTestoAsync(url, input_data):
|
|
285 |
ListaInput = await CreaListaInput(input_data)
|
286 |
for data in ListaInput:
|
287 |
LoggaTesto("RICHIESTA ASINCRONA", data)
|
288 |
-
tasks.extend([make_request(session, token, data,
|
289 |
return await asyncio.gather(*tasks)
|
290 |
|
291 |
|
|
|
285 |
ListaInput = await CreaListaInput(input_data)
|
286 |
for data in ListaInput:
|
287 |
LoggaTesto("RICHIESTA ASINCRONA", data)
|
288 |
+
tasks.extend([make_request(session, token, data, url, index) for index in range(input_data.NumeroGenerazioni)])
|
289 |
return await asyncio.gather(*tasks)
|
290 |
|
291 |
|