Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,6 +7,7 @@ import asyncio
|
|
| 7 |
import nest_asyncio
|
| 8 |
from playwright.async_api import async_playwright
|
| 9 |
from PIL import Image
|
|
|
|
| 10 |
import gradio as gr
|
| 11 |
|
| 12 |
from tools.final_answer import FinalAnswerTool
|
|
@@ -15,7 +16,7 @@ from Gradio_UI import GradioUI
|
|
| 15 |
|
| 16 |
nest_asyncio.apply() # Ensure async works in a Jupyter/Colab/HF Spaces environment
|
| 17 |
|
| 18 |
-
|
| 19 |
|
| 20 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 21 |
@tool
|
|
|
|
| 7 |
import nest_asyncio
|
| 8 |
from playwright.async_api import async_playwright
|
| 9 |
from PIL import Image
|
| 10 |
+
import subprocess
|
| 11 |
import gradio as gr
|
| 12 |
|
| 13 |
from tools.final_answer import FinalAnswerTool
|
|
|
|
| 16 |
|
| 17 |
nest_asyncio.apply() # Ensure async works in a Jupyter/Colab/HF Spaces environment
|
| 18 |
|
| 19 |
+
subprocess.run(["playwright", "install"])
|
| 20 |
|
| 21 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 22 |
@tool
|