Spaces:
Paused
Paused
Update app_parallel.py
Browse files- app_parallel.py +2 -2
app_parallel.py
CHANGED
@@ -286,10 +286,10 @@ def generate_chunks(audio_chunks, preprocessed_data, args):
|
|
286 |
|
287 |
@app.route("/run", methods=['POST'])
|
288 |
def parallel_processing():
|
289 |
-
global start_time
|
|
|
290 |
start_time = time.time()
|
291 |
global TEMP_DIR
|
292 |
-
global audio_chunks
|
293 |
TEMP_DIR = create_temp_dir()
|
294 |
print('request:',request.method)
|
295 |
try:
|
|
|
286 |
|
287 |
@app.route("/run", methods=['POST'])
|
288 |
def parallel_processing():
|
289 |
+
global start_time
|
290 |
+
global audio_chunks, preprocessed_data, args
|
291 |
start_time = time.time()
|
292 |
global TEMP_DIR
|
|
|
293 |
TEMP_DIR = create_temp_dir()
|
294 |
print('request:',request.method)
|
295 |
try:
|