| # LogiAI Backend — Telepítési útmutató |
|
|
| ## Fájlstruktúra |
| ``` |
| logiai_backend/ |
| ├── main.py |
| ├── requirements.txt |
| └── logiai_lora/ ← ide csomagold ki a LogiAI_modell.zip tartalmát! |
| ├── adapter_config.json |
| ├── adapter_model.safetensors |
| ├── tokenizer.model |
| └── ... |
| ``` |
|
|
| ## Render.com-on való telepítés (ingyenes) |
|
|
| 1. Menj a https://render.com oldalra |
| 2. Regisztrálj GitHub fiókkal |
| 3. GitHub-on hozz létre egy új repo-t: `logiai-backend` |
| 4. Töltsd fel ebbe a mappát (main.py, requirements.txt, logiai_lora mappa) |
| 5. Render.com-on: "New" → "Web Service" |
| 6. Csatlakoztasd a GitHub repo-t |
| 7. Beállítások: |
| - Build Command: `pip install -r requirements.txt` |
| - Start Command: `uvicorn main:app --host 0.0.0.0 --port $PORT` |
| - Instance Type: Free |
| 8. Kattints "Deploy"! |
| |
| ## Netlify index.html frissítése |
| |
| Ha megvan a Render.com URL (pl. https://logiai-backend.onrender.com), |
| nyisd meg az index.html-t és írd be: |
| |
| ```javascript |
| const BACKEND_URL = 'https://logiai-backend.onrender.com'; |
| ``` |
| |
| ## Lokális futtatás teszteléshez |
| |
| ```bash |
| pip install -r requirements.txt |
| uvicorn main:app --reload |
| ``` |
| |
| Majd nyisd meg: http://localhost:8000 |
| |