Share
Embed
mnt_data_とは?ChatGPTコード実行環境を深堀りしてみた
第2回 札幌すごいAI会
https://sapporo-sugoi-ai.connpass.com/event/349822/
Issei.Komori
May 30, 2025
Transcript
24 slides
-
Brotli==1.1.0 CairoSVG==2.5.2 Cython==0.29.36 Faker==8.13.2 Fiona==1.9.2 Flask-CacheBuster==1.0.0 Flask-Cors==5.0.0 Flask-Login==0.6.3 Flask==3.1.0 Jinja2==3.1.4
MarkupSafe==3.0.2 Pillow==9.2.0 PyJWT==2.10.1 PyMuPDF==1.21.1 PyNaCl==1.5.0 PyPDF2==1.28.6 PyWavelets==1.8.0 PyYAML==6.0.2 Pygments==2.18.0 Send2Trash==1.8.3 Shapely==1.7.1 SoundFile==0.10.2 Wand==0.6.13 Werkzeug==3.1.3 XlsxWriter==3.2.0 absl-py==2.1.0 ace-tools==0.0.1 aeppl==0.0.31 aesara==2.7.3 affine==2.4.0 aiohttp==3.9.5 aiosignal==1.3.1 analytics-python==1.4.post1 annotated-types==0.7.0 anyio==3.7.1 anytree==2.8.0 argon2-cffi-bindings==21.2.0 argon2-cffi==23.1.0 arviz==0.20.0 asn1crypto==1.5.1 asttokens==3.0.0 attrs==24.2.0 audioread==3.0.1 babel==2.16.0 backoff==1.10.0 basemap-data==1.3.2 basemap==1.3.9 bcrypt==4.2.1 beautifulsoup4==4.12.3 bleach==6.2.0 blinker==1.9.0 blis==0.7.11 blosc2==2.0.0 bokeh==2.4.0 branca==0.8.0 cachetools==5.5.0 cairocffi==1.7.1 camelot-py==0.10.1 catalogue==2.0.10 certifi==2024.8.30 cffi==1.17.1 chardet==3.0.4 charset-normalizer==2.1.1 click-plugins==1.1.1 click==8.1.7 cligj==0.7.2 cloudpathlib==0.20.0 cloudpickle==3.1.0 cmake==3.31.1 cmudict==1.0.31 comm==0.2.2 confection==0.1.5 cons==0.4.6 contourpy==1.3.1 countryinfo==0.1.2 cryptography==3.4.8 cssselect2==0.7.0 cycler==0.12.1 cymem==2.0.10 databricks-sql-connector==0.9.1 debugpy==1.8.9 decorator==4.4.2 defusedxml==0.7.1 dlib==19.24.2 dnspython==2.7.0 docx2txt==0.8 einops==0.3.2 email_validator==2.2.0 entrypoints==0.4 et_xmlfile==2.0.0 etuples==0.3.9 exchange-calendars==3.4 executing==2.1.0 fastapi-cli==0.0.5 fastapi==0.111.0 fastjsonschema==2.21.1 fastprogress==1.0.3 ffmpeg-python==0.2.0 ffmpy==0.4.0 filelock==3.16.1 folium==0.12.1 fonttools==4.55.3 fpdf==1.7.2 frozenlist==1.5.0 future==1.0.0 fuzzywuzzy==0.18.0 gTTS==2.2.3 gensim==4.3.1 geographiclib==1.52 geopandas==0.10.2 geopy==2.2.0 gradio==2.2.15 graphviz==0.17 h11==0.14.0 h2==4.1.0 h5netcdf==1.4.1 h5py==3.8.0 hpack==4.0.0 html5lib==1.1 httpcore==1.0.7 httptools==0.6.4 httpx==0.28.1 hypercorn==0.14.3 hyperframe==6.0.1 一部です -
Brotli==1.1.0 CairoSVG==2.5.2 Cython==0.29.36 Faker==8.13.2 Fiona==1.9.2 Flask-CacheBuster==1.0.0 Flask-Cors==5.0.0 Flask-Login==0.6.3 Flask==3.1.0 Jinja2==3.1.4
MarkupSafe==3.0.2 Pillow==9.2.0 PyJWT==2.10.1 PyMuPDF==1.21.1 PyNaCl==1.5.0 PyPDF2==1.28.6 PyWavelets==1.8.0 PyYAML==6.0.2 Pygments==2.18.0 Send2Trash==1.8.3 Shapely==1.7.1 SoundFile==0.10.2 Wand==0.6.13 Werkzeug==3.1.3 XlsxWriter==3.2.0 absl-py==2.1.0 ace-tools==0.0.1 aeppl==0.0.31 aesara==2.7.3 affine==2.4.0 aiohttp==3.9.5 aiosignal==1.3.1 analytics-python==1.4.post1 annotated-types==0.7.0 anyio==3.7.1 anytree==2.8.0 argon2-cffi-bindings==21.2.0 argon2-cffi==23.1.0 arviz==0.20.0 asn1crypto==1.5.1 asttokens==3.0.0 attrs==24.2.0 audioread==3.0.1 babel==2.16.0 backoff==1.10.0 basemap-data==1.3.2 basemap==1.3.9 bcrypt==4.2.1 beautifulsoup4==4.12.3 bleach==6.2.0 blinker==1.9.0 blis==0.7.11 blosc2==2.0.0 bokeh==2.4.0 branca==0.8.0 cachetools==5.5.0 cairocffi==1.7.1 camelot-py==0.10.1 catalogue==2.0.10 certifi==2024.8.30 cffi==1.17.1 chardet==3.0.4 charset-normalizer==2.1.1 click-plugins==1.1.1 click==8.1.7 cligj==0.7.2 cloudpathlib==0.20.0 cloudpickle==3.1.0 cmake==3.31.1 cmudict==1.0.31 comm==0.2.2 confection==0.1.5 cons==0.4.6 contourpy==1.3.1 countryinfo==0.1.2 cryptography==3.4.8 cssselect2==0.7.0 cycler==0.12.1 cymem==2.0.10 databricks-sql-connector==0.9.1 debugpy==1.8.9 decorator==4.4.2 defusedxml==0.7.1 dlib==19.24.2 dnspython==2.7.0 docx2txt==0.8 einops==0.3.2 email_validator==2.2.0 entrypoints==0.4 et_xmlfile==2.0.0 etuples==0.3.9 exchange-calendars==3.4 executing==2.1.0 fastapi-cli==0.0.5 fastapi==0.111.0 fastjsonschema==2.21.1 fastprogress==1.0.3 ffmpeg-python==0.2.0 ffmpy==0.4.0 filelock==3.16.1 folium==0.12.1 fonttools==4.55.3 fpdf==1.7.2 frozenlist==1.5.0 future==1.0.0 fuzzywuzzy==0.18.0 gTTS==2.2.3 gensim==4.3.1 geographiclib==1.52 geopandas==0.10.2 geopy==2.2.0 gradio==2.2.15 graphviz==0.17 h11==0.14.0 h2==4.1.0 h5netcdf==1.4.1 h5py==3.8.0 hpack==4.0.0 html5lib==1.1 httpcore==1.0.7 httptools==0.6.4 httpx==0.28.1 hypercorn==0.14.3 hyperframe==6.0.1 一部です 例)ffmpegがある!! -
Use the python code interpreter to convert mp4 to mp3
and then download it. You can lower the sound quality if you want to process it faster. Below is a code sample. --- import subprocess # Define input and output paths input_path = "/mnt/data/test.mp4" output_path = "/mnt/data/test_audio_ffmpeg.mp3" # Run ffmpeg command to extract audio # -y: overwrite without asking # -vn: no video # -ab 64k: audio bitrate (lower for faster, smaller file) command = [ "ffmpeg", "-i", input_path, "-vn", "-ab", "64k", "-ar", "44100", # sample rate "-y", output_path ] # Execute the command subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) # Return output path output_path mp4をmp3にして /mnt/dataでやりとりして ffmpegつかって 中知ってる前提で プロンプトを書く