Downloads · 30 days
0
pantzie/hakunamadata-market-opportunity
hakunamadata-market-opportunity is a machine learning model from pantzie. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Kapadokya Hackathon 2026 projesi. KOBİ ihracatçıları için veri-grounded, karbon-bilinçli, ML-destekli pazar/ürün analiz platformu.
Downloads · 30 days
0
Access
Public
Updated May 2, 2026
Repo size
46 MB
Likes
0
Public
Click a slice to open those files.
.parquet72.9 MB · 61%
From the Hugging Face model README
Kapadokya Hackathon 2026 projesi. KOBİ ihracatçıları için veri-grounded, karbon-bilinçli, ML-destekli pazar/ürün analiz platformu.
Bu commit Step 1 — Temel İskelet'tir. Sadece Google Vertex AI canlı, diğer tüm modüller stub. TCMB, Nominatim, OpenRouteService, NewsAPI, World Bank vb. dış API'ler bu adımda yoktur.
backend/.env dosyasına kopyala:
project_id → VERTEX_PROJECT_IDclient_email → VERTEX_CLIENT_EMAILprivate_key → VERTEX_PRIVATE_KEY (tek satır; gerçek satır sonları yerine \n kalır)VERTEX_PROJECT_ID_2, VERTEX_CLIENT_EMAIL_2, VERTEX_PRIVATE_KEY_2 doldurulabilir..env yeterli, gitignore'lı.| Model | Görev | Endpoint |
|---|---|---|
gemini-3.1-pro-preview | Text + Vision reasoning (1M token context) | global |
gemini-3-pro-image-preview | Nano Banana Pro — ambalaj redesign | global |
gemini-2.5-flash-image-preview | Nano Banana — fallback / hızlı batch | global |
text-multilingual-embedding-002 | RAG embedding (TR + AR + JP + EN) | us-central1 |
Gemini 3.x ailesi yalnızca global endpoint'te çalışır (us-central1 404 döner). Kod region routing'i otomatik yapar — gerek yok elle ayarlamana.
SDK: text/vision/image için google-genai (yeni), embedding için vertexai (eski). İkisi de pip install -r requirements.txt ile gelir.
# 1. Backend env
cp backend/.env.example backend/.env
# backend/.env içine Vertex SA 3 alanını doldur (yukarıdaki Vertex AI Setup adımları).
# 2. Backend
cd backend
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
uvicorn main:app --reload --port 8000
# 3. Frontend (yeni terminal)
cd frontend
cp .env.local.example .env.local
npm install
npm run dev
Backend → http://localhost:8000 Frontend → http://localhost:3000
Hepsi 200 dönmeli ve gerçek Vertex AI çağrısı yapmalıdır.
curl http://localhost:8000/health
curl http://localhost:8000/vertex/test-text
curl http://localhost:8000/vertex/test-vision
curl http://localhost:8000/vertex/test-embedding
curl http://localhost:8000/vertex/test-image-gen
/vertex/test-image-gen ilk çağrıda Nano Banana Pro'yu dener; hata alırsa otomatik olarak Nano Banana 2 fallback'ine geçer ve cevapta fallback_attempted: true döner.
cave2cloud/
├── backend/ FastAPI + Vertex AI
│ ├── main.py
│ ├── config.py
│ ├── vertex/ Vertex AI istemcileri
│ ├── routes/ API endpoint'leri (çoğu stub)
│ ├── ml/ LightGBM inference (dummy)
│ ├── rag/ ChromaDB iskelet
│ └── data/ PDF, ChromaDB, cultural rules
└── frontend/ Next.js 14 + Tailwind + shadcn/ui
├── app/ App Router sayfaları
├── components/ UI bileşenleri
└── lib/ API wrapper, utils