fffiloni commited on
Commit
f0b11a9
1 Parent(s): a8517d8

get rid of sleep time

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -85,11 +85,9 @@ def predict(request: gr.Request, *args, progress=gr.Progress(track_tqdm=True)):
85
  json_response = response.json()
86
  #If the output component is JSON return the entire output response
87
  if(outputs[0].get_config()["name"] == "json"):
88
- time.sleep(1)
89
  return json_response["output"]
90
  predict_outputs = parse_outputs(json_response["output"])
91
  processed_outputs = process_outputs(predict_outputs)
92
- time.sleep(1)
93
  return tuple(processed_outputs) if len(processed_outputs) > 1 else processed_outputs[0]
94
  else:
95
  time.sleep(1)
 
85
  json_response = response.json()
86
  #If the output component is JSON return the entire output response
87
  if(outputs[0].get_config()["name"] == "json"):
 
88
  return json_response["output"]
89
  predict_outputs = parse_outputs(json_response["output"])
90
  processed_outputs = process_outputs(predict_outputs)
 
91
  return tuple(processed_outputs) if len(processed_outputs) > 1 else processed_outputs[0]
92
  else:
93
  time.sleep(1)