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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #183 · 23 ное.

Python + bash Если вам часто требуется запускать shell команды из Python-кода, какой способ вы используете? Самый низкоуровневый это функция os.system(), либо os.popen(). Рекомендованный способ это subprocess.call(). Но это всё еще достаточно неудобно. Советую обратить своё внимание на очень крутую библиотеку sh. Что она умеет? 🔸 удобный синтаксис вызова команд как функций # os import os os.system("tar cvf demo.tar ~/") # subprocess import subprocess subprocess.call(['tar', 'cvf', 'demo.tar', '~/']) # sh import sh sh.tar('cvf', 'demo.tar', "~/") 🔸 простое создание функции-алиаса для длинной команды fn = sh.lsof.bake('-i', '-P', '-n') output = sh.grep(fn(), 'LISTEN') в этом примере также задействован пайпинг 🔸 удобный вызов команд от sudo with sh.contrib.sudo: print(ls("/root")) Такой запрос спросит пароль. Чтобы это работало нужно соответствующим способом настроить юзера. А вот вариант с вводом пароля через код. password = "secret" sudo = sh.sudo.bake("-S", _in=password+"\n") print(sudo.ls("/root")) Это не все фишки. Больше интересных примеров смотрите в документации. Специально для Windows💀 юзеров #libs#linux

Hashtags

Резултати

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

Пребарај: #aiinhr

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

@ai_and_law · Post #60 · 19.07.2023 г., 07:04

Risky Business: survey reveals HR's growing reliance on ChatGPT Hello AI enthusiasts! Get ready for an intriguing update from the world of AI and HR. According to a recent survey by HR Reporter, ChatGPT, an artificial intelligence language model, is becoming increasingly popular among HR professionals. The survey findings indicate that many HR departments are embracing ChatGPT for various HR-related tasks. The survey revealed that 42% of HR professionals use ChatGPT for initial candidate screening and resume analysis. This AI-powered chatbot helps automate the screening process, saving valuable time and effort for HR teams. Additionally, 36% of respondents reported using ChatGPT to generate interview questions and assess candidate responses. While the integration of AI in HR brings undeniable benefits, it also raises important considerations. The survey highlighted concerns among HR professionals regarding the lack of transparency and potential bias in AI decision-making. As organizations adopt AI technologies, it becomes crucial to carefully examine the ethical implications and limitations of relying solely on AI for critical HR functions. What are your thoughts on the growing reliance on AI, such as ChatGPT, in HR? How can organizations ensure responsible and unbiased use of AI in HR decision-making? Stay tuned for more exciting updates on AI and its impact on the legal landscape! 💡 #AIinHR#ChatGPT#Automation#EthicsInAI