Spaces:
Running
AttributeError: 'Tensor' object has no attribute 'logits'
I entered some text and hit predict and got this error.
AttributeError: 'Tensor' object has no attribute 'logits'
Traceback:
File "/home/user/app/app.py", line 218, in <module>
model_label, probs = predict(translated_text)
File "/home/user/app/app.py", line 163, in predict
logits = outputs.logits
Also fact checker
is a misleading title, these models are not capable of true fact checking (not to say an AI model or tool will become sufficient in the future, probably not LLM's but newer architectures entirely, Foundational Model?).
I explained why briefly on this space:
https://huggingface.co/spaces/Saty01/FactChecker/discussions/1
Additionally i looked at the code of this space, it looks like AI wrote it and contains secrets, i would strongly advice you use environment variables instead (this seperates code from your secrets like API key).
Additionally relying on a third party to aggregate information into one place can be problematic, not only for privacy reasons but you could end up with issues such as with google search where what is relevent
is decided based on unknown algorithms, if you only take n
number of results, it could easily be gamed, like the google search rankings are.
Overall it might be a good safeguard that this doesn't work currently, because it gives you time to lock down your secrets(security) and make corrections before it gets a user-base.