File size: 1,112 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
#!/bin/bash
# Character Forge - Startup Script
# =================================

echo
echo "========================================"
echo "Character Forge - Starting"
echo "========================================"
echo

# Check if GEMINI_API_KEY is set
if [ -z "$GEMINI_API_KEY" ]; then
    echo "WARNING: GEMINI_API_KEY environment variable is not set!"
    echo
    echo "You can either:"
    echo "1. Set it now: export 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
    read -p "Press Enter to continue..."
fi

# Check if streamlit is available
if ! python3 -c "import streamlit" 2>/dev/null; then
    echo "ERROR: Streamlit is not installed!"
    echo
    echo "Please run: ./install.sh"
    echo
    exit 1
fi

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

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

cd ..