banner
andrewji8

Being towards death

Heed not to the tree-rustling and leaf-lashing rain, Why not stroll along, whistle and sing under its rein. Lighter and better suited than horses are straw sandals and a bamboo staff, Who's afraid? A palm-leaf plaited cape provides enough to misty weather in life sustain. A thorny spring breeze sobers up the spirit, I feel a slight chill, The setting sun over the mountain offers greetings still. Looking back over the bleak passage survived, The return in time Shall not be affected by windswept rain or shine.
telegram
twitter
github

不用開發,如何在 10 分鐘內上線一個 AI 產品

不會編程,就不能做 AI 相關產品了嗎?
不用開發,如何 10 分鐘上線一個 AI 產品呢?
今天給大家推薦 Vercel AI 模板中心,這個大寶庫。
網址是 https://vercel.com/templates/ai ,打開後長下面這樣。

image

可用的 AI 產品模板直接列出來了,我們只需要一個一個點進去,查看功能,並且在線體驗 demo 站點,就可以選出我們需要的 AI 產品。

舉例,我之前看到有人在宣傳推廣他的 AI 代碼轉換器產品,當時還覺得,做得不錯啊。

後來才發現,直接是用的 Vercel 的這個模板 https://vercel.com/templates/next.js/ai-code-translator 部署起來的。

image
部署步驟也特別簡單,下面我盡量用沒有任何基礎也能看懂的方式來給大家講解一下。

第 1 步:註冊 Vercel 帳號

打開 Vercel 註冊頁面 https://vercel.com/signup ,選擇第一個 Hobby 套餐,因為我們是個人項目使用。

image
之後,輸入你的用戶名,舉例我這裡可以輸入 "andrewji8",點擊 "Continue" 按鈕。

image
下一步,選擇 Github 登錄。如果你沒有 Github 帳號,那麼需要註冊一個,就點擊 "Create an account"。

image
第 2 步,註冊 Github 帳號

按照下方要求,輸入用戶名、郵箱和密碼。

image
之後點擊這個頁面下方的 "verify" 按鈕。

image
按照要求進行人機驗證,通過後就可以點擊 "Create account" 按鈕了。

image
之後,Github 會向我們的註冊郵箱發送一封驗證郵件,複製 8 位數字驗證碼,輸入後就能驗證通過。

image
第 3 步,用 Github 授權註冊(或登錄)Vercel

點擊 "Authorize Vercel" 按鈕,同意授權登錄 Vercel。

image
到此,就註冊成功了 Vercel 帳號了。

第 4 步,部署 AI 產品模板

我們以 AI 代碼轉換器為例,打開 https://vercel.com/templates/next.js/ai-code-translator ,點擊頁面左下角的 "Deploy" 按鈕。

image
下一步,會讓我們選擇用哪個平台存儲代碼,因為我們用 Github 註冊的,所以就選擇 Github。

image
之後輸入框保持默認值,點擊 "Create" 按鈕。

image
這個項目需要填寫 OpenAI 的 API Key ,需要去 https://platform.openai.com/account/api-keys 創建一個新的 key ,填入到第二個輸入框,之後點擊 "Deploy" 按鈕。

image
到這一步,看到漫天飛花,就說明部署成功了,點擊右上角的 "Continue to Dashboard"。

image
可以看到狀態是 "Ready",說明正常運行,複製 Vercel 免費提供給我們的子域名網址 https://ai-code-translator-orpin-six.vercel.app/ 打開。

image
在左側輸入 javascript 代碼,點擊 "Translate" 按鈕,就把代碼翻譯成 python 代碼了,說明部署成功且真的能夠正常運行。

image
如果你想部署其他 AI 產品模板,也是一樣的步驟。

載入中......
此文章數據所有權由區塊鏈加密技術和智能合約保障僅歸創作者所有。