Spaces:
Sleeping
Sleeping
Update app.py
Browse filestry another function
app.py
CHANGED
|
@@ -23,6 +23,16 @@ subprocess.run(["apt-get", "install", "-y", "libnss3", "libatk1.0-0", "libatk-br
|
|
| 23 |
|
| 24 |
subprocess.run(["playwright", "install", "chromium"])
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 27 |
@tool
|
| 28 |
def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
|
|
|
|
| 23 |
|
| 24 |
subprocess.run(["playwright", "install", "chromium"])
|
| 25 |
|
| 26 |
+
# def install_playwright_and_deps():
|
| 27 |
+
# try:
|
| 28 |
+
# # Install Playwright
|
| 29 |
+
# subprocess.check_call(["pip", "install", "playwright"])
|
| 30 |
+
# subprocess.check_call(["apt-get", "playwright", "install-deps"])
|
| 31 |
+
# except subprocess.CalledProcessError as e:
|
| 32 |
+
# print(f"Error installing Playwright or dependencies: {e}")
|
| 33 |
+
|
| 34 |
+
# install_playwright_and_deps()
|
| 35 |
+
|
| 36 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 37 |
@tool
|
| 38 |
def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
|