Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after giving text input to the server. #8

Open
Smupk2778 opened this issue Oct 21, 2024 · 0 comments
Open

Error after giving text input to the server. #8

Smupk2778 opened this issue Oct 21, 2024 · 0 comments

Comments

@Smupk2778
Copy link

Loading pipeline components...: 100%|███████████████████████████████████████████████████████████████████████████████████████| 10/10 [00:03<00:00, 2.84it/s]
<gradio.components.image.Image object at 0x7f4c5ff2e9f0> <gradio.components.textbox.Textbox object at 0x7f4c503f06b0> <gradio.components.textbox.Textbox object at 0x7f4c5ff2f1a0> <gradio.components.radio.Radio object at 0x7f4c5ffb2420> <gradio.components.number.Number object at 0x7f4c405d5bb0> <gradio.components.number.Number object at 0x7f4c5ab6d0d0> <gradio.components.checkbox.Checkbox object at 0x7f4c5ffb3a70> <gradio.components.number.Number object at 0x7f4c8ebbec00>

To create a public link, set share=True in launch().
CompoDiff sampling loop: 100%|██████████████████████████████████████████████████████████████████████████████████████████████| 10/10 [00:00<00:00, 46.60it/s]
Traceback (most recent call last):
File "/home/kushalverma/scratch/anaconda3/lib/python3.12/site-packages/requests/models.py", line 974, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kushalverma/scratch/anaconda3/lib/python3.12/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kushalverma/scratch/anaconda3/lib/python3.12/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kushalverma/scratch/anaconda3/lib/python3.12/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/kushalverma/scratch/anaconda3/lib/python3.12/site-packages/gradio/queueing.py", line 622, in process_events
response = await route_utils.call_process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kushalverma/scratch/anaconda3/lib/python3.12/site-packages/gradio/route_utils.py", line 323, in call_process_api
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kushalverma/scratch/anaconda3/lib/python3.12/site-packages/gradio/blocks.py", line 2014, in process_api
result = await self.call_function(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kushalverma/scratch/anaconda3/lib/python3.12/site-packages/gradio/blocks.py", line 1567, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kushalverma/scratch/anaconda3/lib/python3.12/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kushalverma/scratch/anaconda3/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 2134, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "/home/kushalverma/scratch/anaconda3/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 851, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kushalverma/scratch/anaconda3/lib/python3.12/site-packages/gradio/utils.py", line 846, in wrapper
response = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/mnt/data1/kushalverma/UGRC/CompoDiff/demo_search.py", line 137, in predict
results = client.query(embedding_input=features[0].tolist())[:15]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kushalverma/scratch/anaconda3/lib/python3.12/site-packages/clip_retrieval/clip_client.py", line 92, in query
return self.search_knn_api(embedding_input=embedding_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kushalverma/scratch/anaconda3/lib/python3.12/site-packages/clip_retrieval/clip_client.py", line 153, in search_knn_api
).json()
^^^^^^
File "/home/kushalverma/scratch/anaconda3/lib/python3.12/site-packages/requests/models.py", line 978, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant