Spaces:
Runtime error
runtime error
runtime error, OH NO!
Exit code: 1. Reason: ne 64, in generate
File "", line 19, in clip_caption
File "/usr/local/lib/python3.10/site-packages/gradio_client/client.py", line 463, in predict
).result()
File "/usr/local/lib/python3.10/site-packages/gradio_client/client.py", line 1485, in result
return super().result(timeout=timeout)
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 458, in result
return self.__get_result()
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/site-packages/gradio_client/compatibility.py", line 65, in _inner
predictions = _predict(*data)
File "/usr/local/lib/python3.10/site-packages/gradio_client/compatibility.py", line 96, in _predict
result = utils.synchronize_async(self._ws_fn, data, hash_data, helper)
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 855, in synchronize_async
return fsspec.asyn.sync(fsspec.asyn.get_loop(), func, *args, **kwargs) # type: ignore
File "/usr/local/lib/python3.10/site-packages/fsspec/asyn.py", line 103, in sync
raise return_result
File "/usr/local/lib/python3.10/site-packages/fsspec/asyn.py", line 56, in _runner
result[0] = await coro
File "/usr/local/lib/python3.10/site-packages/gradio_client/compatibility.py", line 338, in _ws_fn
return await utils.get_pred_from_ws(websocket, data, hash_data, helper)
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 320, in get_pred_from_ws
msg = task.result()
File "/usr/local/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 568, in recv
await self.ensure_open()
File "/usr/local/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 935, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: no close frame received or sent
Container logs:
===== Application Startup at 2024-08-21 16:43:11 =====
Loaded as API: https://pharmapsychotic-clip-interrogator.hf.space/ โ
Caching examples at: '/home/user/app/gradio_cached_examples/5'
Caching example 1/1
upload image 0.5394406318664551
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 959, in transfer_data
message = await self.read_message()
File "/usr/local/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1029, in read_message
frame = await self.read_data_frame(max_size=self.max_size)
File "/usr/local/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1104, in read_data_frame
frame = await self.read_frame(max_size)
File "/usr/local/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1161, in read_frame
frame = await Frame.read(
File "/usr/local/lib/python3.10/site-packages/websockets/legacy/framing.py", line 68, in read
data = await reader(2)
File "/usr/local/lib/python3.10/asyncio/streams.py", line 706, in readexactly
raise exceptions.IncompleteReadError(incomplete, n)
asyncio.exceptions.IncompleteReadError: 0 bytes read on a total of 2 expected bytes
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/user/app/app.py", line 3, in
exec(os.environ.get('CODE'))
File "", line 98, in
File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 74, in create_examples
examples_obj.create()
File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 314, in create
self._start_caching()
File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 365, in _start_caching
client_utils.synchronize_async(self.cache)
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 855, in synchronize_async
return fsspec.asyn.sync(fsspec.asyn.get_loop(), func, *args, **kwargs) # type: ignore
File "/usr/local/lib/python3.10/site-packages/fsspec/asyn.py", line 103, in sync
raise return_result
File "/usr/local/lib/python3.10/site-packages/fsspec/asyn.py", line 56, in _runner
result[0] = await coro
File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 487, in cache
prediction = await Context.root_block.process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1928, in process_api
result = await self.call_function(
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1514, in call_function
prediction = await anyio.to_thread.run_sync(
File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2177, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 859, in run
result = context.run(func, *args)
File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 833, in wrapper
response = f(*args, **kwargs)
File "", line 64, in generate
File "", line 19, in clip_caption
File "/usr/local/lib/python3.10/site-packages/gradio_client/client.py", line 463, in predict
).result()
File "/usr/local/lib/python3.10/site-packages/gradio_client/client.py", line 1485, in result
return super().result(timeout=timeout)
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 458, in result
return self.__get_result()
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/site-packages/gradio_client/compatibility.py", line 65, in _inner
predictions = _predict(*data)
File "/usr/local/lib/python3.10/site-packages/gradio_client/compatibility.py", line 96, in _predict
result = utils.synchronize_async(self._ws_fn, data, hash_data, helper)
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 855, in synchronize_async
return fsspec.asyn.sync(fsspec.asyn.get_loop(), func, *args, **kwargs) # type: ignore
File "/usr/local/lib/python3.10/site-packages/fsspec/asyn.py", line 103, in sync
raise return_result
File "/usr/local/lib/python3.10/site-packages/fsspec/asyn.py", line 56, in _runner
result[0] = await coro
File "/usr/local/lib/python3.10/site-packages/gradio_client/compatibility.py", line 338, in _ws_fn
return await utils.get_pred_from_ws(websocket, data, hash_data, helper)
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 320, in get_pred_from_ws
msg = task.result()
File "/usr/local/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 568, in recv
await self.ensure_open()
File "/usr/local/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 935, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: no close frame received or sent
Loaded as API: https://pharmapsychotic-clip-interrogator.hf.space/ โ
Traceback (most recent call last):
File "/home/user/app/app.py", line 3, in
exec(os.environ.get('CODE'))
File "", line 10, in
File "/usr/local/lib/python3.10/site-packages/gradio_client/client.py", line 149, in init
self.config = self._get_config()
File "/usr/local/lib/python3.10/site-packages/gradio_client/client.py", line 863, in _get_config
raise ValueError(f"Could not fetch config for {self.src}")
ValueError: Could not fetch config for https://pharmapsychotic-clip-interrogator.hf.space/