using duplicate private space for personnal use with default config dont work

#1
by Kurtis88 - opened

/home/user/.local/lib/python3.10/site-packages/pydantic/_internal/fields.py:128: UserWarning: Field "model_id" has conflict with protected namespace "model".

You may be able to resolve this warning by setting model_config['protected_namespaces'] = ().
warnings.warn(
Running on local URL: http://0.0.0.0:7860

To create a public link, set share=True in launch().
Traceback (most recent call last):
File "/home/user/.local/lib/python3.10/site-packages/gradio/queueing.py", line 407, in call_prediction
output = await route_utils.call_process_api(
File "/home/user/.local/lib/python3.10/site-packages/gradio/route_utils.py", line 226, in call_process_api
output = await app.get_blocks().process_api(
File "/home/user/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1550, in process_api
result = await self.call_function(
File "/home/user/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1199, in call_function
prediction = await utils.async_iteration(iterator)
File "/home/user/.local/lib/python3.10/site-packages/gradio/utils.py", line 519, in async_iteration
return await iterator.anext()
File "/home/user/.local/lib/python3.10/site-packages/gradio/utils.py", line 512, in anext
return await anyio.to_thread.run_sync(
File "/home/user/.local/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/home/user/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/home/user/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/home/user/.local/lib/python3.10/site-packages/gradio/utils.py", line 495, in run_sync_iterator_async
return next(iterator)
File "/home/user/.local/lib/python3.10/site-packages/gradio/utils.py", line 649, in gen_wrapper
yield from f(*args, **kwargs)
File "/home/user/app/app.py", line 53, in generate
first_response = next(generator)
File "/home/user/app/model.py", line 51, in run
for response in stream:
File "/home/user/.local/lib/python3.10/site-packages/text_generation/client.py", line 243, in generate_stream
raise parse_error(resp.status_code, resp.json())
text_generation.errors.BadRequestError: Authorization header is correct, but the token seems invalid

Sign up or log in to comment