使用 Modal 做 AI 影音示範 prompt
demo1.md Example: 請產生一個 python script,可以執行以下任務。 請先不要執行這個 python script,我稍後會自己手動用 "modal run" 來執行。 任務: 製作10秒有聲影片: 內容需有以下海報文字" "2026第一屆趣味 AI 奧林匹亞競賽" 音樂: 加入科技感爵士風配樂。 旁白: "歡迎來到 2026 第一屆趣味 AI 奧林匹亞競賽。" 工作環境: * conda env (mednews) 裡的 python 3.12 * conda env (mednews) 裡的 modal 要求: * 旁白請用用台灣女生的語音。 * 要使用 NVIDIA GPU Project prompt 1: 測試 Modal 請產生一個 python script,可以執行以下任務。 請先不要執行這個 python script,我稍後會自己手動用 "modal run" 來執行。 我正在使用 VS Code,環境是: - Python 3.12 - Conda environment - 已安裝 modal - 已完成 Modal 登入 - 我要使用 NVIDIA GPU 任務: 請幫我建立一個最簡單的 Modal Python 範例: 1. 建立 app 2. 建立一個使用 GPU 的 function 3. 在 GPU function 裡使用 PyTorch 4. 印出 torch.cuda.is_available() 5. 印出 GPU 型號 6. 顯示 GPU VRAM 資訊 7. 本機執行時呼叫這個 remote function 請直接產生完整 Python 程式碼, 並告訴我檔名以及在 VS Code Terminal 要輸入的執行指令。 如果需要安裝 Python 套件,請使用 Modal Image 定義, 不要假設套件已經安裝在 Modal container 裡。 prompt 2: text-to-image 請產生一個 python script,可以執行以下任務。 請先不要執行這個 python script,我稍後會自己手...