#!/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