mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-12 12:40:29 +08:00
This commit is contained in:
parent
138761226a
commit
40e6ddf911
@ -1557,7 +1557,10 @@ class Job(Future):
|
||||
o = self.communicator.job.outputs[self._counter]
|
||||
self._counter += 1
|
||||
return o
|
||||
if self.communicator.job.latest_status.code == Status.FINISHED:
|
||||
if (
|
||||
self.communicator.job.latest_status.code == Status.FINISHED
|
||||
and self._counter >= len(self.communicator.job.outputs)
|
||||
):
|
||||
raise StopIteration()
|
||||
time.sleep(0.001)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user