PetThoughts
1.0.0
英語 | 中文
現場示範:我知道你的寵物在想什麼
「我知道你的寵物在想什麼」是一款基於 Gemini Pro API 構建的圖像識別應用程式。透過上傳寵物的照片,該應用程式可以智慧分析寵物的面部表情和環境,並推測它們可能在想什麼。
請確保上傳的照片清晰可見,以獲得更準確的分析結果。本應用程式僅適用於辨識和分析貓、狗等常見寵物。對於其他動物來說可能不準確。這是一個有趣又實用的圖像識別應用程序,可以讓您更深入地了解寵物的情緒和喜好。無論是為了更好地照顧您的寵物,或是與朋友分享有關寵物的有趣故事,本網站都能為您提供愉快的使用者體驗。
只需單擊上面的按鈕並按照說明即可部署您自己的應用程式副本。
姓名 | 描述 | 必需的 |
---|---|---|
GEMINI_API_KEY | 您的 GEMINI API 金鑰。你可以從這裡得到它。 | 是的 |
您只需根據Gemini文件調整以下參數,修改為您需要的提示即可!
// pagesapiupload.js
// generation config
const generationConfig = {
temperature : 1 ,
topK : 32 ,
topP : 1 ,
maxOutputTokens : 8000
}
// prompt config
const parts = [
{
text : 'You are a skilled pet language translator. Based on the photos uploaded by users, you identify what kind of pet it is and accurately guess the pet' s emotions and thoughts . You can guess what the pet wants to say based on the pet 's body language, expression, and surrounding environment. After the translation, please give the "voice" of the pet according to the tone of the pet. Speak more naturally and answer in Chinese. The format is as follows: ?: <What kind of pet is this> <What the pet is thinking>. If there is no pet in the picture uploaded by the user, it will return "There is no pet in the picture~""'
}
. . .
]
本專案前端程式碼由v0.dev生成,介面由Google Gemini提供,統計分析由Google Clarity提供。
警告
本項目為開源項目,使用者使用時必須遵守GOOGLE的使用條款及適用的法律法規,不得用於非法目的。
根據國家網路信函辦《人工智慧生成服務管理暫行辦法》要求,請勿向境內民眾提供未經註冊的人工智慧產生服務。
麻省理工學院 © 劉子婷