File size: 1,072 Bytes
5b6e956
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@echo off
REM Character Forge - Startup Script
REM =================================

echo.
echo ========================================
echo Character Forge - Starting
echo ========================================
echo.

REM Check if GEMINI_API_KEY is set
if "%GEMINI_API_KEY%"=="" (
    echo WARNING: GEMINI_API_KEY environment variable is not set!
    echo.
    echo You can either:
    echo 1. Set it now: set GEMINI_API_KEY=your-key-here
    echo 2. Enter it in the UI when the app starts
    echo.
    echo Get your API key at: https://aistudio.google.com/app/apikey
    echo.
    pause
)

REM Check if streamlit is available
python -c "import streamlit" 2>nul
if errorlevel 1 (
    echo ERROR: Streamlit is not installed!
    echo.
    echo Please run: install.bat
    echo.
    pause
    exit /b 1
)

echo Starting Character Forge...
echo.
echo Application will open in your browser
echo URL: http://localhost:8501
echo.
echo Press Ctrl+C to stop
echo.

REM Change to character_forge_image directory and start
cd character_forge_image
streamlit run app.py

cd ..