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 слични објави

Пребарај: #copyrightlaws

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

@ai_and_law · Post #203 · 29.12.2023 г., 08:04

NY Times Takes On OpenAI and Microsoft Over Copyright Infringement Hello everybody! The New York Times has filed a lawsuit against OpenAI and Microsoft for alleged copyright infringement. This marks the first time a major American media organization has taken legal action against creators of prominent AI platforms, including ChatGPT. The lawsuit, filed in Federal District Court in Manhattan, claims that millions of articles from The Times were used without authorization to train automated chatbots, putting the media giant in direct competition with AI systems. The heart of the matter lies in the contention that the intellectual property of The New York Times was utilized to train AI models, specifically chatbots, that now serve as alternative sources of information. The lawsuit does not specify a monetary demand but emphasizes the responsibility of the defendants to be held accountable for "billions of dollars in statutory and actual damages." The legal action calls for the destruction of any chatbot models and training data incorporating copyrighted material from The Times. The lawsuit reveals that The Times initiated discussions with Microsoft and OpenAI in April to address concerns about the unauthorized use of its intellectual property. These talks, aimed at finding an amicable resolution, including a potential commercial agreement, did not result in a resolution. The legal battle could set a precedent for the legal boundaries surrounding generative AI technologies, particularly regarding the use of copyrighted materials. As concerns about the unlicensed use of intellectual property by AI systems grow, this case joins a series of legal actions within the tech industry. The outcome of such lawsuits may have far-reaching implications, not only for The New York Times but for the broader media landscape. #AILaw#NYTimes#OpenAI#Microsoft#ChatGPT#CopyrightLaws#AIEthics