This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from langchain_openai import ChatOpenAI | |
| from browser_use import Agent | |
| import asyncio | |
| import ipdb | |
| import csv | |
| llm = ChatOpenAI(model="gpt-4o") | |
| async def main(): | |
| search_agent = Agent( | |
| task=""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PIL import Image | |
| from PIL import ImageFont | |
| from PIL import ImageDraw | |
| import textwrap | |
| base_image_location = "/home/aameer/Desktop/test.png" #base image location | |
| W,H=(900, 100) #width and height of base image | |
| font_location = "/home/aameer/Desktop/verdanab.ttf" #font used | |
| output_image_location='/home/aameer/Desktop/' #location where output file will be stored |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import sys | |
| import stat | |
| def copyfile(file_path, targer_dir): | |
| if not (os.path.exists(file_path) and os.path.exists(target_dir) and os.path.isdir(target_dir)): | |
| print "Enter valid arguments" | |
| sys.exit() | |
| if os.path.isdir(file_path): | |
| os.chdir(file_path[:file_path.rindex('/')]) |