LLMView_multi_model / requirements.txt
WatNeru's picture
fast api added
f1d5201
# マルチモデル対応に必要なパッケージ
# ============================================
# Hugging Face Spaces用(推奨、必須)
# ============================================
# Gradio - Web UI(最新版でセキュリティ脆弱性を修正)
gradio>=4.43.0
# FastAPI - 外部APIアクセス用
fastapi>=0.111.0
pydantic>=2.0.0
# Hugging Face Spaces
spaces
# Transformers - ローカルでモデルをロード(無料、完全なトークン確率取得可能)
transformers>=4.30.0
torch>=2.0.0
accelerate>=0.30.0 # device_map="auto"を使用する場合に必要
huggingface-hub>=0.16.0
# 形態素解析
fugashi>=1.3.0
sudachipy>=0.6.7
sudachidict-core>=20240125
# その他
numpy>=1.24.0
# ============================================
# 外部API用(オプション、非推奨)
# Hugging Face Spacesでは不要です
# ============================================
# OpenAI API(有料、レート制限あり)
# openai>=1.0.0
# Anthropic API(有料、レート制限あり)
# anthropic>=0.18.0
# Google API(有料、レート制限あり)
# google-generativeai>=0.3.0