- Python 3.10
- ChromeDriver
- Clone the repository
git clone <repository-url>
cd AdvancedAI_Project- Install dependencies
pip install -r requirements.txt- Modify the actual driver path
# mail.py
def open_browser_with_cookies(cookie):
driver_path = "actual driver path"
# driver_path = "xxx/xxx/chromedriver.exe"- Adapt your base_url, api_key and model
# backend.py
# Modify to your url and key
client = OpenAI(
base_url="https://...",
api_key="xxx",
)
# def ask(): modify "deepseek-r1:671b" to your model
model="deepseek-r1:671b",- Run the python file
python backend.py- Enter the website address in the browser
http://127.0.0.1:5001/-
Enter Cookie in the input box
-
Click the button