Spaces:
Sleeping
Sleeping
|
Download README.md from buchi-stdesign/Gemini_API_iPhone: direct link, hf CLI and curl.
- Browser
- Download file 815 Bytes
-
https://huggingface.co/spaces/buchi-stdesign/Gemini_API_iPhone/resolve/main/README.md
- Command line
-
hf download hf://spaces/buchi-stdesign/Gemini_API_iPhone/README.md
-
curl -L -o README.md https://huggingface.co/spaces/buchi-stdesign/Gemini_API_iPhone/resolve/main/README.md
815 Bytes
metadata
title: Gemini API iPhone
emoji: 🌙
colorFrom: indigo
colorTo: pink
sdk: docker
pinned: false
Gemini API × iPhoneショートカット中継サーバ
セットアップ手順
- ライブラリのインストール
pip install -r requirements.txt
.envファイルを作成し、以下のようにGemini APIキーを記述
GEMINI_API_KEY=AIzaSy...(あなたのAPIキー)
- サーバ起動
uvicorn app:app --reload --port 8000
- iPhoneショートカットで以下の設定を行う:
- URL: http://<このサーバのアドレス>:8000/story
- メソッド: POST
- 本文(JSON):
{
"prompt": "3分以内で眠れるおとぎ話を作ってください。"
}
- レスポンスから
storyを取得し、Siriで「テキストを読み上げる」