英語 | 中国語
ライブデモ:あなたのペットが何を考えているか知っています
「I Know What Your Pet Is Thinking」は、Gemini Pro API に基づいて構築された画像認識アプリケーションです。ペットの写真をアップロードすると、アプリはペットの表情や環境をインテリジェントに分析し、ペットが何を考えているかを推測します。
より正確な分析結果を得るために、アップロードした写真が鮮明で見やすいことを確認してください。このアプリケーションは、猫や犬などの一般的なペットの識別と分析にのみ適しています。他の動物については正確ではない可能性があります。ペットの感情や好みをより深く理解できる、楽しくて実用的な画像認識アプリケーションです。ペットの世話を良くするためでも、ペットに関する興味深い話を友達と共有するためでも、この Web サイトは快適なユーザー エクスペリエンスを提供します。
上のボタンをクリックし、指示に従ってアプリケーションの独自のコピーをデプロイするだけです。
名前 | 説明 | 必須 |
---|---|---|
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 の利用規約および適用される法令を遵守して使用する必要があり、違法な目的で使用してはなりません。
中国サイバースペース局が発行した「生成 AI サービス管理に関する暫定措置」の要件に従って、未登録の生成 AI サービスを中国の公衆に提供しないでください。
MIT © 劉子亭