CoolFace
Apppublic

MGouthamreddy/security-logs-env

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes
deploy.bat81 linesDownload Raw Back to root
1@echo off2REM Security Log Analysis Environment - Deployment Script3REM This script prepares your project for Hugging Face deployment4 5echo =============================================6echo Security Log Analysis - Deployment Prep7echo =============================================8echo.9 10REM Check if git is installed11where git >nul 2>nul12if %ERRORLEVEL% NEQ 0 (13    echo [ERROR] Git is not installed. Please install Git first:14    echo https://git-scm.com/download/win15    pause16    exit /b 117)18 19echo [OK] Git is installed20echo.21 22REM Initialize git repo if needed23if not exist .git (24    echo Initializing Git repository...25    git init26    echo.27)28 29REM Check if remote is configured30git remote -v | findstr "huggingface" >nul 2>nul31if %ERRORLEVEL% NEQ 0 (32    echo [ACTION NEEDED] Add your Hugging Face remote:33    echo.34    echo git remote add hf https://huggingface.co/spaces/YOUR_USERNAME/security-logs-env35    echo.36    echo Replace YOUR_USERNAME with your HF username!37    echo.38) else (39    echo [OK] Hugging Face remote configured40    echo.41)42 43REM Add all files44echo Adding files to git...45git add .46echo.47 48REM Check if there are changes to commit49git diff --cached --quiet50if %ERRORLEVEL% NEQ 0 (51    echo Committing changes...52    git commit -m "Security Log Analysis Environment"53    echo.54) else (55    echo [INFO] No changes to commit56    echo.57)58 59REM Show next steps60echo =============================================61echo NEXT STEPS (Manual - Required):62echo =============================================63echo.64echo 1. Create Space on Hugging Face:65echo    https://huggingface.co/spaces/create66echo.67echo 2. Add this remote (replace YOUR_USERNAME):68echo    git remote add hf https://huggingface.co/spaces/YOUR_USERNAME/security-logs-env69echo.70echo 3. Push to Hugging Face:71echo    git push -u hf main72echo.73echo 4. Add secrets in Space Settings:74echo    - API_BASE_URL = https://router.huggingface.co/v175echo    - MODEL_NAME = mistralai/Mistral-7B-Instruct-v0.376echo    - HF_TOKEN = your_huggingface_token77echo.78echo =============================================79echo.80pause81