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

[Bug]: fresh install nothing works #28

Open
1 task done
thevegit0 opened this issue Dec 6, 2024 · 0 comments
Open
1 task done

[Bug]: fresh install nothing works #28

thevegit0 opened this issue Dec 6, 2024 · 0 comments

Comments

@thevegit0
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

i installed the thing twice and nothing works literally, i click any node or button and error spews over the page and cmd

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...

Command Line Arguments on Installing

the ones on sthe site

Command Line Arguments on Launching

start bat

Console logs

ERROR:    Exception in ASGI application
  + Exception Group Traceback (most recent call last):
  |   File "C:\image-interrogator\venv\lib\site-packages\starlette\_utils.py", line 76, in collapse_excgroups
  |     yield
  |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 186, in __call__
  |     async with anyio.create_task_group() as task_group:
  |   File "C:\image-interrogator\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 815, in __aexit__
  |     raise BaseExceptionGroup(
  | exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
  +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    |   File "C:\image-interrogator\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
    |     result = await app(  # type: ignore[func-returns-value]
    |   File "C:\image-interrogator\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__
    |     return await self.app(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\applications.py", line 1054, in __call__
    |     await super().__call__(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\applications.py", line 113, in __call__
    |     await self.middleware_stack(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\errors.py", line 187, in __call__
    |     raise exc
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\errors.py", line 165, in __call__
    |     await self.app(scope, receive, _send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 185, in __call__
    |     with collapse_excgroups():
    |   File "C:\Users\ElDeve\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 153, in __exit__
    |     self.gen.throw(typ, value, traceback)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\_utils.py", line 82, in collapse_excgroups
    |     raise exc
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 187, in __call__
    |     response = await self.dispatch_func(request, call_next)
    |   File "C:\image-interrogator\venv\lib\site-packages\gradio\route_utils.py", line 632, in dispatch
    |     response = await call_next(request)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 163, in call_next
    |     raise app_exc
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 149, in coro
    |     await self.app(scope, receive_or_disconnect, send_no_error)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__
    |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
    |     raise exc
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    |     await app(scope, receive, sender)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 715, in __call__
    |     await self.middleware_stack(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 735, in app
    |     await route.handle(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 288, in handle
    |     await self.app(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 76, in app
    |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
    |     raise exc
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    |     await app(scope, receive, sender)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 73, in app
    |     response = await f(request)
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\routing.py", line 291, in app
    |     solved_result = await solve_dependencies(
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\dependencies\utils.py", line 666, in solve_dependencies
    |     ) = await request_body_to_args(  # body_params checked above
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\dependencies\utils.py", line 891, in request_body_to_args
    |     fields_to_extract = get_cached_model_fields(first_field.type_)
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 659, in get_cached_model_fields
    |     return get_model_fields(model)
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 285, in get_model_fields
    |     return [
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 286, in <listcomp>
    |     ModelField(field_info=field_info, name=name)
    |   File "<string>", line 6, in __init__
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 111, in __post_init__
    |     self._type_adapter: TypeAdapter[Any] = TypeAdapter(
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\type_adapter.py", line 209, in __init__
    |     core_schema = _get_schema(type, config_wrapper, parent_depth=_parent_depth + 1)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\type_adapter.py", line 81, in _get_schema
    |     schema = gen.generate_schema(type_)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 499, in generate_schema
    |     schema = self._generate_schema(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 737, in _generate_schema
    |     schema = self._post_process_generated_schema(self._generate_schema_inner(obj))
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 744, in _generate_schema_inner
    |     return self._annotated_schema(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1679, in _annotated_schema
    |     schema = self._apply_annotations(source_type, annotations)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1747, in _apply_annotations
    |     schema = get_inner_schema(source_type)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_schema_generation_shared.py", line 82, in __call__
    |     schema = self._handler(__source_type)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1829, in new_handler    |     schema = metadata_get_schema(source, get_inner_schema)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1825, in <lambda>
    |     lambda source, handler: handler(source)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_schema_generation_shared.py", line 82, in __call__
    |     schema = self._handler(__source_type)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1728, in inner_handler
    |     schema = self._generate_schema(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 737, in _generate_schema
    |     schema = self._post_process_generated_schema(self._generate_schema_inner(obj))
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 764, in _generate_schema_inner
    |     return self.match_type(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 847, in match_type
    |     return self._match_generic_type(obj, origin)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 871, in _match_generic_type
    |     return self._union_schema(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1115, in _union_schema
    |     choices.append(self.generate_schema(arg))
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 499, in generate_schema
    |     schema = self._generate_schema(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 737, in _generate_schema
    |     schema = self._post_process_generated_schema(self._generate_schema_inner(obj))
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 764, in _generate_schema_inner
    |     return self.match_type(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 851, in match_type
    |     return self._unknown_type_schema(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 397, in _unknown_type_schema
    |     raise PydanticSchemaGenerationError(
    | pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <class 'starlette.requests.Request'>. Set `arbitrary_types_allowed=True` in the model_config to ignore this error or implement `__get_pydantic_core_schema__` on your type to fully support it.
    |
    | If you got this error by calling handler(<some type>) within `__get_pydantic_core_schema__` then you likely need to call `handler.generate_schema(<some type>)` since we do not call `__get_pydantic_core_schema__` on `<some type>` otherwise to avoid infinite recursion.
    |
    | For further information visit https://errors.pydantic.dev/2.6/u/schema-for-unknown-type
    +------------------------------------

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\image-interrogator\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "C:\image-interrogator\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__
    return await self.app(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\applications.py", line 113, in __call__
    await self.middleware_stack(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\errors.py", line 187, in __call__
    raise exc
  File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\errors.py", line 165, in __call__
    await self.app(scope, receive, _send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 185, in __call__
    with collapse_excgroups():
  File "C:\Users\ElDeve\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\_utils.py", line 82, in collapse_excgroups
    raise exc
  File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 187, in __call__
    response = await self.dispatch_func(request, call_next)
  File "C:\image-interrogator\venv\lib\site-packages\gradio\route_utils.py", line 632, in dispatch
    response = await call_next(request)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 163, in call_next
    raise app_exc
  File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 149, in coro
    await self.app(scope, receive_or_disconnect, send_no_error)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 715, in __call__
    await self.middleware_stack(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 735, in app
    await route.handle(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 288, in handle
    await self.app(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 73, in app
    response = await f(request)
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\routing.py", line 291, in app
    solved_result = await solve_dependencies(
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\dependencies\utils.py", line 666, in solve_dependencies
    ) = await request_body_to_args(  # body_params checked above
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\dependencies\utils.py", line 891, in request_body_to_args
    fields_to_extract = get_cached_model_fields(first_field.type_)
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 659, in get_cached_model_fields
    return get_model_fields(model)
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 285, in get_model_fields
    return [
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 286, in <listcomp>
    ModelField(field_info=field_info, name=name)
  File "<string>", line 6, in __init__
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 111, in __post_init__
    self._type_adapter: TypeAdapter[Any] = TypeAdapter(
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\type_adapter.py", line 209, in __init__
    core_schema = _get_schema(type, config_wrapper, parent_depth=_parent_depth + 1)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\type_adapter.py", line 81, in _get_schema
    schema = gen.generate_schema(type_)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 499, in generate_schema
    schema = self._generate_schema(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 737, in _generate_schema
    schema = self._post_process_generated_schema(self._generate_schema_inner(obj))
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 744, in _generate_schema_inner
    return self._annotated_schema(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1679, in _annotated_schema    schema = self._apply_annotations(source_type, annotations)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1747, in _apply_annotations
    schema = get_inner_schema(source_type)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_schema_generation_shared.py", line 82, in __call__
    schema = self._handler(__source_type)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1829, in new_handler
    schema = metadata_get_schema(source, get_inner_schema)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1825, in <lambda>
    lambda source, handler: handler(source)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_schema_generation_shared.py", line 82, in __call__
    schema = self._handler(__source_type)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1728, in inner_handler
    schema = self._generate_schema(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 737, in _generate_schema
    schema = self._post_process_generated_schema(self._generate_schema_inner(obj))
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 764, in _generate_schema_inner
    return self.match_type(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 847, in match_type
    return self._match_generic_type(obj, origin)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 871, in _match_generic_type
    return self._union_schema(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1115, in _union_schema
    choices.append(self.generate_schema(arg))
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 499, in generate_schema
    schema = self._generate_schema(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 737, in _generate_schema
    schema = self._post_process_generated_schema(self._generate_schema_inner(obj))
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 764, in _generate_schema_inner
    return self.match_type(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 851, in match_type
    return self._unknown_type_schema(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 397, in _unknown_type_schema
    raise PydanticSchemaGenerationError(
pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <class 'starlette.requests.Request'>. Set `arbitrary_types_allowed=True` in the model_config to ignore this error or implement `__get_pydantic_core_schema__` on your type to fully support it.

If you got this error by calling handler(<some type>) within `__get_pydantic_core_schema__` then you likely need to call `handler.generate_schema(<some type>)` since we do not call `__get_pydantic_core_schema__` on `<some type>` otherwise to avoid infinite recursion.

For further information visit https://errors.pydantic.dev/2.6/u/schema-for-unknown-type
ERROR:    Exception in ASGI application
  + Exception Group Traceback (most recent call last):
  |   File "C:\image-interrogator\venv\lib\site-packages\starlette\_utils.py", line 76, in collapse_excgroups
  |     yield
  |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 186, in __call__
  |     async with anyio.create_task_group() as task_group:
  |   File "C:\image-interrogator\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 815, in __aexit__
  |     raise BaseExceptionGroup(
  | exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
  +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    |   File "C:\image-interrogator\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
    |     result = await app(  # type: ignore[func-returns-value]
    |   File "C:\image-interrogator\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__
    |     return await self.app(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\applications.py", line 1054, in __call__
    |     await super().__call__(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\applications.py", line 113, in __call__
    |     await self.middleware_stack(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\errors.py", line 187, in __call__
    |     raise exc
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\errors.py", line 165, in __call__
    |     await self.app(scope, receive, _send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 185, in __call__
    |     with collapse_excgroups():
    |   File "C:\Users\ElDeve\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 153, in __exit__
    |     self.gen.throw(typ, value, traceback)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\_utils.py", line 82, in collapse_excgroups
    |     raise exc
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 187, in __call__
    |     response = await self.dispatch_func(request, call_next)
    |   File "C:\image-interrogator\venv\lib\site-packages\gradio\route_utils.py", line 632, in dispatch
    |     response = await call_next(request)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 163, in call_next
    |     raise app_exc
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 149, in coro
    |     await self.app(scope, receive_or_disconnect, send_no_error)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__
    |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
    |     raise exc
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    |     await app(scope, receive, sender)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 715, in __call__
    |     await self.middleware_stack(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 735, in app
    |     await route.handle(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 288, in handle
    |     await self.app(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 76, in app
    |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
    |     raise exc
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    |     await app(scope, receive, sender)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 73, in app
    |     response = await f(request)
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\routing.py", line 291, in app
    |     solved_result = await solve_dependencies(
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\dependencies\utils.py", line 666, in solve_dependencies
    |     ) = await request_body_to_args(  # body_params checked above
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\dependencies\utils.py", line 891, in request_body_to_args
    |     fields_to_extract = get_cached_model_fields(first_field.type_)
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 659, in get_cached_model_fields
    |     return get_model_fields(model)
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 285, in get_model_fields
    |     return [
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 286, in <listcomp>
    |     ModelField(field_info=field_info, name=name)
    |   File "<string>", line 6, in __init__
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 111, in __post_init__
    |     self._type_adapter: TypeAdapter[Any] = TypeAdapter(
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\type_adapter.py", line 209, in __init__
    |     core_schema = _get_schema(type, config_wrapper, parent_depth=_parent_depth + 1)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\type_adapter.py", line 81, in _get_schema
    |     schema = gen.generate_schema(type_)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 499, in generate_schema
    |     schema = self._generate_schema(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 737, in _generate_schema
    |     schema = self._post_process_generated_schema(self._generate_schema_inner(obj))
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 744, in _generate_schema_inner
    |     return self._annotated_schema(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1679, in _annotated_schema
    |     schema = self._apply_annotations(source_type, annotations)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1747, in _apply_annotations
    |     schema = get_inner_schema(source_type)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_schema_generation_shared.py", line 82, in __call__
    |     schema = self._handler(__source_type)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1829, in new_handler    |     schema = metadata_get_schema(source, get_inner_schema)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1825, in <lambda>
    |     lambda source, handler: handler(source)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_schema_generation_shared.py", line 82, in __call__
    |     schema = self._handler(__source_type)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1728, in inner_handler
    |     schema = self._generate_schema(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 737, in _generate_schema
    |     schema = self._post_process_generated_schema(self._generate_schema_inner(obj))
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 764, in _generate_schema_inner
    |     return self.match_type(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 847, in match_type
    |     return self._match_generic_type(obj, origin)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 871, in _match_generic_type
    |     return self._union_schema(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1115, in _union_schema
    |     choices.append(self.generate_schema(arg))
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 499, in generate_schema
    |     schema = self._generate_schema(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 737, in _generate_schema
    |     schema = self._post_process_generated_schema(self._generate_schema_inner(obj))
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 764, in _generate_schema_inner
    |     return self.match_type(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 851, in match_type
    |     return self._unknown_type_schema(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 397, in _unknown_type_schema
    |     raise PydanticSchemaGenerationError(
    | pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <class 'starlette.requests.Request'>. Set `arbitrary_types_allowed=True` in the model_config to ignore this error or implement `__get_pydantic_core_schema__` on your type to fully support it.
    |
    | If you got this error by calling handler(<some type>) within `__get_pydantic_core_schema__` then you likely need to call `handler.generate_schema(<some type>)` since we do not call `__get_pydantic_core_schema__` on `<some type>` otherwise to avoid infinite recursion.
    |
    | For further information visit https://errors.pydantic.dev/2.6/u/schema-for-unknown-type
    +------------------------------------

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\image-interrogator\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "C:\image-interrogator\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__
    return await self.app(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\applications.py", line 113, in __call__
    await self.middleware_stack(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\errors.py", line 187, in __call__
    raise exc
  File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\errors.py", line 165, in __call__
    await self.app(scope, receive, _send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 185, in __call__
    with collapse_excgroups():
  File "C:\Users\ElDeve\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\_utils.py", line 82, in collapse_excgroups
    raise exc
  File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 187, in __call__
    response = await self.dispatch_func(request, call_next)
  File "C:\image-interrogator\venv\lib\site-packages\gradio\route_utils.py", line 632, in dispatch
    response = await call_next(request)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 163, in call_next
    raise app_exc
  File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 149, in coro
    await self.app(scope, receive_or_disconnect, send_no_error)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 715, in __call__
    await self.middleware_stack(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 735, in app
    await route.handle(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 288, in handle
    await self.app(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 73, in app
    response = await f(request)
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\routing.py", line 291, in app
    solved_result = await solve_dependencies(
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\dependencies\utils.py", line 666, in solve_dependencies
    ) = await request_body_to_args(  # body_params checked above
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\dependencies\utils.py", line 891, in request_body_to_args
    fields_to_extract = get_cached_model_fields(first_field.type_)
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 659, in get_cached_model_fields
    return get_model_fields(model)
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 285, in get_model_fields
    return [
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 286, in <listcomp>
    ModelField(field_info=field_info, name=name)
  File "<string>", line 6, in __init__
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 111, in __post_init__
    self._type_adapter: TypeAdapter[Any] = TypeAdapter(
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\type_adapter.py", line 209, in __init__
    core_schema = _get_schema(type, config_wrapper, parent_depth=_parent_depth + 1)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\type_adapter.py", line 81, in _get_schema
    schema = gen.generate_schema(type_)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 499, in generate_schema
    schema = self._generate_schema(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 737, in _generate_schema
    schema = self._post_process_generated_schema(self._generate_schema_inner(obj))
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 744, in _generate_schema_inner
    return self._annotated_schema(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1679, in _annotated_schema    schema = self._apply_annotations(source_type, annotations)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1747, in _apply_annotations
    schema = get_inner_schema(source_type)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_schema_generation_shared.py", line 82, in __call__
    schema = self._handler(__source_type)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1829, in new_handler
    schema = metadata_get_schema(source, get_inner_schema)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1825, in <lambda>
    lambda source, handler: handler(source)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_schema_generation_shared.py", line 82, in __call__
    schema = self._handler(__source_type)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1728, in inner_handler
    schema = self._generate_schema(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 737, in _generate_schema
    schema = self._post_process_generated_schema(self._generate_schema_inner(obj))
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 764, in _generate_schema_inner
    return self.match_type(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 847, in match_type
    return self._match_generic_type(obj, origin)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 871, in _match_generic_type
    return self._union_schema(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1115, in _union_schema
    choices.append(self.generate_schema(arg))
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 499, in generate_schema
    schema = self._generate_schema(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 737, in _generate_schema
    schema = self._post_process_generated_schema(self._generate_schema_inner(obj))
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 764, in _generate_schema_inner
    return self.match_type(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 851, in match_type
    return self._unknown_type_schema(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 397, in _unknown_type_schema
    raise PydanticSchemaGenerationError(
pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <class 'starlette.requests.Request'>. Set `arbitrary_types_allowed=True` in the model_config to ignore this error or implement `__get_pydantic_core_schema__` on your type to fully support it.

If you got this error by calling handler(<some type>) within `__get_pydantic_core_schema__` then you likely need to call `handler.generate_schema(<some type>)` since we do not call `__get_pydantic_core_schema__` on `<some type>` otherwise to avoid infinite recursion.

For further information visit https://errors.pydantic.dev/2.6/u/schema-for-unknown-type
ERROR:    Exception in ASGI application
  + Exception Group Traceback (most recent call last):
  |   File "C:\image-interrogator\venv\lib\site-packages\starlette\_utils.py", line 76, in collapse_excgroups
  |     yield
  |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 186, in __call__
  |     async with anyio.create_task_group() as task_group:
  |   File "C:\image-interrogator\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 815, in __aexit__
  |     raise BaseExceptionGroup(
  | exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
  +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    |   File "C:\image-interrogator\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
    |     result = await app(  # type: ignore[func-returns-value]
    |   File "C:\image-interrogator\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__
    |     return await self.app(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\applications.py", line 1054, in __call__
    |     await super().__call__(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\applications.py", line 113, in __call__
    |     await self.middleware_stack(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\errors.py", line 187, in __call__
    |     raise exc
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\errors.py", line 165, in __call__
    |     await self.app(scope, receive, _send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 185, in __call__
    |     with collapse_excgroups():
    |   File "C:\Users\ElDeve\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 153, in __exit__
    |     self.gen.throw(typ, value, traceback)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\_utils.py", line 82, in collapse_excgroups
    |     raise exc
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 187, in __call__
    |     response = await self.dispatch_func(request, call_next)
    |   File "C:\image-interrogator\venv\lib\site-packages\gradio\route_utils.py", line 632, in dispatch
    |     response = await call_next(request)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 163, in call_next
    |     raise app_exc
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 149, in coro
    |     await self.app(scope, receive_or_disconnect, send_no_error)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__
    |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
    |     raise exc
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    |     await app(scope, receive, sender)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 715, in __call__
    |     await self.middleware_stack(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 735, in app
    |     await route.handle(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 288, in handle
    |     await self.app(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 76, in app
    |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
    |     raise exc
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    |     await app(scope, receive, sender)
    |   File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 73, in app
    |     response = await f(request)
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\routing.py", line 291, in app
    |     solved_result = await solve_dependencies(
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\dependencies\utils.py", line 666, in solve_dependencies
    |     ) = await request_body_to_args(  # body_params checked above
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\dependencies\utils.py", line 891, in request_body_to_args
    |     fields_to_extract = get_cached_model_fields(first_field.type_)
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 659, in get_cached_model_fields
    |     return get_model_fields(model)
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 285, in get_model_fields
    |     return [
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 286, in <listcomp>
    |     ModelField(field_info=field_info, name=name)
    |   File "<string>", line 6, in __init__
    |   File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 111, in __post_init__
    |     self._type_adapter: TypeAdapter[Any] = TypeAdapter(
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\type_adapter.py", line 209, in __init__
    |     core_schema = _get_schema(type, config_wrapper, parent_depth=_parent_depth + 1)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\type_adapter.py", line 81, in _get_schema
    |     schema = gen.generate_schema(type_)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 499, in generate_schema
    |     schema = self._generate_schema(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 737, in _generate_schema
    |     schema = self._post_process_generated_schema(self._generate_schema_inner(obj))
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 744, in _generate_schema_inner
    |     return self._annotated_schema(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1679, in _annotated_schema
    |     schema = self._apply_annotations(source_type, annotations)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1747, in _apply_annotations
    |     schema = get_inner_schema(source_type)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_schema_generation_shared.py", line 82, in __call__
    |     schema = self._handler(__source_type)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1829, in new_handler    |     schema = metadata_get_schema(source, get_inner_schema)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1825, in <lambda>
    |     lambda source, handler: handler(source)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_schema_generation_shared.py", line 82, in __call__
    |     schema = self._handler(__source_type)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1728, in inner_handler
    |     schema = self._generate_schema(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 737, in _generate_schema
    |     schema = self._post_process_generated_schema(self._generate_schema_inner(obj))
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 764, in _generate_schema_inner
    |     return self.match_type(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 847, in match_type
    |     return self._match_generic_type(obj, origin)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 871, in _match_generic_type
    |     return self._union_schema(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1115, in _union_schema
    |     choices.append(self.generate_schema(arg))
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 499, in generate_schema
    |     schema = self._generate_schema(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 737, in _generate_schema
    |     schema = self._post_process_generated_schema(self._generate_schema_inner(obj))
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 764, in _generate_schema_inner
    |     return self.match_type(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 851, in match_type
    |     return self._unknown_type_schema(obj)
    |   File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 397, in _unknown_type_schema
    |     raise PydanticSchemaGenerationError(
    | pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <class 'starlette.requests.Request'>. Set `arbitrary_types_allowed=True` in the model_config to ignore this error or implement `__get_pydantic_core_schema__` on your type to fully support it.
    |
    | If you got this error by calling handler(<some type>) within `__get_pydantic_core_schema__` then you likely need to call `handler.generate_schema(<some type>)` since we do not call `__get_pydantic_core_schema__` on `<some type>` otherwise to avoid infinite recursion.
    |
    | For further information visit https://errors.pydantic.dev/2.6/u/schema-for-unknown-type
    +------------------------------------

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\image-interrogator\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "C:\image-interrogator\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__
    return await self.app(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\applications.py", line 113, in __call__
    await self.middleware_stack(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\errors.py", line 187, in __call__
    raise exc
  File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\errors.py", line 165, in __call__
    await self.app(scope, receive, _send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 185, in __call__
    with collapse_excgroups():
  File "C:\Users\ElDeve\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\_utils.py", line 82, in collapse_excgroups
    raise exc
  File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 187, in __call__
    response = await self.dispatch_func(request, call_next)
  File "C:\image-interrogator\venv\lib\site-packages\gradio\route_utils.py", line 632, in dispatch
    response = await call_next(request)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 163, in call_next
    raise app_exc
  File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\base.py", line 149, in coro
    await self.app(scope, receive_or_disconnect, send_no_error)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 715, in __call__
    await self.middleware_stack(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 735, in app
    await route.handle(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 288, in handle
    await self.app(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "C:\image-interrogator\venv\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "C:\image-interrogator\venv\lib\site-packages\starlette\routing.py", line 73, in app
    response = await f(request)
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\routing.py", line 291, in app
    solved_result = await solve_dependencies(
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\dependencies\utils.py", line 666, in solve_dependencies
    ) = await request_body_to_args(  # body_params checked above
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\dependencies\utils.py", line 891, in request_body_to_args
    fields_to_extract = get_cached_model_fields(first_field.type_)
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 659, in get_cached_model_fields
    return get_model_fields(model)
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 285, in get_model_fields
    return [
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 286, in <listcomp>
    ModelField(field_info=field_info, name=name)
  File "<string>", line 6, in __init__
  File "C:\image-interrogator\venv\lib\site-packages\fastapi\_compat.py", line 111, in __post_init__
    self._type_adapter: TypeAdapter[Any] = TypeAdapter(
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\type_adapter.py", line 209, in __init__
    core_schema = _get_schema(type, config_wrapper, parent_depth=_parent_depth + 1)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\type_adapter.py", line 81, in _get_schema
    schema = gen.generate_schema(type_)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 499, in generate_schema
    schema = self._generate_schema(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 737, in _generate_schema
    schema = self._post_process_generated_schema(self._generate_schema_inner(obj))
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 744, in _generate_schema_inner
    return self._annotated_schema(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1679, in _annotated_schema    schema = self._apply_annotations(source_type, annotations)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1747, in _apply_annotations
    schema = get_inner_schema(source_type)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_schema_generation_shared.py", line 82, in __call__
    schema = self._handler(__source_type)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1829, in new_handler
    schema = metadata_get_schema(source, get_inner_schema)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1825, in <lambda>
    lambda source, handler: handler(source)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_schema_generation_shared.py", line 82, in __call__
    schema = self._handler(__source_type)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1728, in inner_handler
    schema = self._generate_schema(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 737, in _generate_schema
    schema = self._post_process_generated_schema(self._generate_schema_inner(obj))
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 764, in _generate_schema_inner
    return self.match_type(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 847, in match_type
    return self._match_generic_type(obj, origin)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 871, in _match_generic_type
    return self._union_schema(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 1115, in _union_schema
    choices.append(self.generate_schema(arg))
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 499, in generate_schema
    schema = self._generate_schema(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 737, in _generate_schema
    schema = self._post_process_generated_schema(self._generate_schema_inner(obj))
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 764, in _generate_schema_inner
    return self.match_type(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 851, in match_type
    return self._unknown_type_schema(obj)
  File "C:\image-interrogator\venv\lib\site-packages\pydantic\_internal\_generate_schema.py", line 397, in _unknown_type_schema
    raise PydanticSchemaGenerationError(
pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <class 'starlette.requests.Request'>. Set `arbitrary_types_allowed=True` in the model_config to ignore this error or implement `__get_pydantic_core_schema__` on your type to fully support it.

If you got this error by calling handler(<some type>) within `__get_pydantic_core_schema__` then you likely need to call `handler.generate_schema(<some type>)` since we do not call `__get_pydantic_core_schema__` on `<some type>` otherwise to avoid infinite recursion.

For further information visit https://errors.pydantic.dev/2.6/u/schema-for-unknown-typ

Additional information

No response

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