kfahn commited on
Commit
136b2bd
·
verified ·
1 Parent(s): 72153e1

Update app.py

Browse files

try another function

Files changed (1) hide show
  1. app.py +10 -0
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