NVIDIA / GenerativeAIExamples

Generative AI reference workflows optimized for accelerated infrastructure and microservice architecture.
Apache License 2.0
2.45k stars 527 forks source link

fix: fix error when loading the tool #204

Closed meiranp-nvidia closed 1 month ago

meiranp-nvidia commented 1 month ago

With the upgrade of dependency package, there will be an compatible issue when loading the UI of the tool. The error message is as below:

ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/pydantic/type_adapter.py", line 270, in _init_core_attrs
    self._core_schema = _getattr_no_parents(self._type, '__pydantic_core_schema__')
  File "/usr/local/lib/python3.10/dist-packages/pydantic/type_adapter.py", line 112, in _getattr_no_parents
    raise AttributeError(attribute)
AttributeError: __pydantic_core_schema__

To solve this problem, we need to upgrade some packages and remove the version in requirement.txt.

With the fix, verified the tool can work as expected.