TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #175 · 30 окт.

В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль QtCompat (compatibility). Там не так много функций но они довольно полезны. Этот модуль содержит унификаци модуля shiboken2, функций loadUi, translate и несколько переименованных функций классов или изменённую сигнатуру аргументов и возвращаемых значений. Это единственное исключение из правила когда вам потребуется где-то изменить свой код кроме импортов и этот код не похож на обычный код PySide2. Например, в PyQt4 и PySide есть метод QHeaderView.setResizeMode Для PyQt5 и PySide2 они были благополучно переименованы в QHeaderView.setSectionResizeMode Чтобы применить этот метод следует использовать такой код from Qt import QtCompath header = self.horizontalHeader() QtCompat.QHeaderView.setSectionResizeMode(header, QtWidgets.QHeaderView.Fixed) Унификация загрузки UI файлов: # PySide2 from PySide2.QtUiTools import QUiLoader loader = QUiLoader() widget = loader.load(ui_file) # PyQt5 from PyQt5 import uic widget = uic.loadUi(ui_file) # Qt.py from Qt import QtCompat widget = QtCompat.loadUi(ui_file) Хорошо что таких моментов не много и их легко запомнить. Полный список можно посмотреть в таблице. #qt#tricks

Hashtags

Резултати

Пронајдени 1 слични објави

Пребарај: #aiauthenticity

当前筛选 #aiauthenticity清除筛选
AI & Law

@ai_and_law · Post #190 · 15.12.2023 г., 08:04

In UK Court Rejects Appeal Based on Fabricated AI Cases Greetings everyone! In a recent legal development, a woman's attempt to appeal a penalty for capital gains tax using nine "fabricated" ChatGPT-generated cases has been rejected by the court. Felicity Harber faced a £3,265 charge for failing to pay tax on a property sale. However, the court found that the cases she presented were artificial intelligence fabrications. During the appeal, when questioned about the use of AI, Mrs. Harber acknowledged its possibility as she received the fabricated cases from a friend in a solicitor's office. Despite Mrs. Harber's claim of unawareness regarding the cases' validity, her appeal was dismissed. The judge, Anne Redston, highlighted the seriousness of presenting invented judgments, stating that while the outcome might have been the same, citing fake authorities remains a significant issue. The court recognized Mrs. Harber's lack of knowledge in verifying the cases' validity through legal search tools. This incident reflects a broader challenge posed by AI tools like ChatGPT, known for their "hallucination problem" where false information is generated. Earlier instances, including a UK judge's admission of using ChatGPT in judgments and American lawyers penalized for AI-generated fake citations, underscore the need for caution in relying on AI-generated content in legal contexts. #AIinLaw#LegalTech#ChatGPT#AIGovernance#AIAuthenticity#LegalAI