API err

#8
by Dmytro-Dmytro - opened

Each time I'm using API i get this:
Loaded as API: https://multimodalart-stable-video-diffusion.hf.space/--replicas/gfmjp/
Traceback (most recent call last):
File "/home/dmytro/projects/gradio/main.py", line 11, in
result = client.predict(
File "/home/dmytro/projects/gradio/venv/lib/python3.10/site-packages/gradio_client/client.py", line 305, in predict
return self.submit(*args, api_name=api_name, fn_index=fn_index).result()
File "/home/dmytro/projects/gradio/venv/lib/python3.10/site-packages/gradio_client/client.py", line 1456, in result
return super().result(timeout=timeout)
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 458, in result
return self.__get_result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/dmytro/projects/gradio/venv/lib/python3.10/site-packages/gradio_client/client.py", line 869, in _inner
predictions = _predict(*data)
File "/home/dmytro/projects/gradio/venv/lib/python3.10/site-packages/gradio_client/client.py", line 894, in _predict
result = utils.synchronize_async(self._sse_fn, data, hash_data, helper)
File "/home/dmytro/projects/gradio/venv/lib/python3.10/site-packages/gradio_client/utils.py", line 664, in synchronize_async
return fsspec.asyn.sync(fsspec.asyn.get_loop(), func, *args, **kwargs) # type: ignore
File "/home/dmytro/projects/gradio/venv/lib/python3.10/site-packages/fsspec/asyn.py", line 103, in sync
raise return_result
File "/home/dmytro/projects/gradio/venv/lib/python3.10/site-packages/fsspec/asyn.py", line 56, in _runner
result[0] = await coro
File "/home/dmytro/projects/gradio/venv/lib/python3.10/site-packages/gradio_client/client.py", line 1075, in _sse_fn
return await utils.get_pred_from_sse(
File "/home/dmytro/projects/gradio/venv/lib/python3.10/site-packages/gradio_client/utils.py", line 341, in get_pred_from_sse
return task.result()
File "/home/dmytro/projects/gradio/venv/lib/python3.10/site-packages/gradio_client/utils.py", line 377, in stream_sse
code=Status.msg_to_status(resp["msg"]),
File "/home/dmytro/projects/gradio/venv/lib/python3.10/site-packages/gradio_client/utils.py", line 128, in msg_to_status
return {
KeyError: 'heartbeat'

Sign up or log in to comment