(self, data)
| 189 | print("Update workers done") |
| 190 | |
| 191 | async def generate(self, data): |
| 192 | results = ray.get([ |
| 193 | worker.generate.remote(data) |
| 194 | for worker in self.workers |
| 195 | ]) |
| 196 | |
| 197 | return next(path for path in results if path is not None) |
| 198 | |
| 199 | def multi_nodes_infer_forward_api(_: gr.Blocks, app: FastAPI, engine): |
| 200 |
no outgoing calls
no test coverage detected