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

# Function to install dependencies
install_dependencies() {
    echo "Installing dependencies..."
    pip install -r requirements.txt
}

# Function to run the GUI
run_gui() {
    echo "Running the GUI..."
    python3 src/gui.py
}

# Function to handle environment variables for Hugging Face deployment
handle_env_variables() {
    echo "Setting up environment variables..."
    if [ -f .env ]; then
        export $(cat .env | xargs)
    else
        echo ".env file not found. Please create one with the necessary environment variables."
        exit 1
    fi
}

# Main function to execute all steps
main() {
    handle_env_variables
    install_dependencies
    run_gui
}

# Execute the main function
main