Runtime error in deployment on Spaces

#15
by tript - opened

Receiving the following error when deploying on Gradio spaces

runtime error
Exit code: 1. Reason:  alias, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/gradio/external.py", line 395, in from_model
    interface = gradio.Interface(**kwargs)
  File "/usr/local/lib/python3.10/site-packages/gradio/interface.py", line 532, in __init__
    self.render_examples()
  File "/usr/local/lib/python3.10/site-packages/gradio/interface.py", line 880, in render_examples
    self.examples_handler = Examples(
  File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 81, in create_examples
    examples_obj.create()
  File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 340, in create
    self._start_caching()
  File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 391, 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 517, in cache
    prediction = await Context.root_block.process_api(
  File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1945, in process_api
    data = await self.postprocess_data(block_fn, result["prediction"], state)
  File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1768, in postprocess_data
    prediction_value = block.postprocess(prediction_value)
  File "/usr/local/lib/python3.10/site-packages/gradio/components/image.py", line 226, in postprocess
    saved = image_utils.save_image(value, self.GRADIO_CACHE, self.format)
  File "/usr/local/lib/python3.10/site-packages/gradio/image_utils.py", line 72, in save_image
    raise ValueError(
ValueError: Cannot process this value as an Image, it is of type: <class 'tuple'>

Sign up or log in to comment