Spaces:
Paused
Paused
Update app_parallel.py
Browse files- app_parallel.py +1 -1
app_parallel.py
CHANGED
@@ -362,7 +362,7 @@ def parallel_processing():
|
|
362 |
@app.route("/stream", methods=["GET"])
|
363 |
def stream_results():
|
364 |
global future_to_chunk
|
365 |
-
|
366 |
for future in as_completed(future_to_chunk):
|
367 |
idx = future_to_chunk[future]
|
368 |
try:
|
|
|
362 |
@app.route("/stream", methods=["GET"])
|
363 |
def stream_results():
|
364 |
global future_to_chunk
|
365 |
+
def generate():
|
366 |
for future in as_completed(future_to_chunk):
|
367 |
idx = future_to_chunk[future]
|
368 |
try:
|