#!/bin/bash

# Navigate to your app's directory
cd /home/aliasgarov/copyright_checker

# Pull the latest changes from the main branch
git pull origin main

# Kill the running Gradio 
sudo kill -f "app.py"

# Activate your Python environment if necessary
source /home/aliasgarov/copyright_checker/copy_check/bin/activate


# Start your Gradio app (adjust the command as needed)
nohup sudo python3 /home/aliasgarov/copyright_checker/app.py &