Spaces:
Running
Running
Update app.py
#1
by
soiz1
- opened
No description provided.
hmmm im dumb but why :/
When I duplicate and ran your code, it resulted in an error. This means that if this space goes to sleep and restarts, it will no longer function due to that error.torch.serialization.add_safe_globals([object])
is a function that disables the security restrictions when loading torch files. It works similarly to reverting torch to a previous version. Adding pydantic==2.10.6
avoids the error: if "const" in schema: TypeError: argument of type 'bool' is not iterable
.
This space is cool👍.
huzpsb
changed pull request status to
merged