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的使用条款及适用的法律法规,不得用于非法目的。
根据国家网信办《人工智能生成服务管理暂行办法》要求,请勿向境内公众提供未经注册的人工智能生成服务。
麻省理工学院 © 刘子婷