File size: 788 Bytes
2d190aa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/bin/bash

# Simple script to run the Streamlit app locally

echo "🎨 Starting Image Sampling and Quantization Demo..."
echo ""

# Check if virtual environment exists
if [ ! -d "venv" ]; then
    echo "πŸ“¦ No virtual environment found. Creating one..."
    python3 -m venv venv
fi

# Activate virtual environment
echo "πŸ”§ Activating virtual environment..."
source venv/bin/activate

# Install requirements if needed
if [ ! -f "venv/.requirements_installed" ]; then
    echo "πŸ“₯ Installing dependencies..."
    pip install -r requirements.txt
    touch venv/.requirements_installed
else
    echo "βœ… Dependencies already installed"
fi

# Run the app
echo ""
echo "πŸš€ Launching Streamlit app..."
echo "   Open your browser to http://localhost:8501"
echo ""
streamlit run app.py