Spaces:
Sleeping
Sleeping
cleanup
Browse files
app.py
CHANGED
@@ -8,7 +8,6 @@ import os
|
|
8 |
from typing import Literal
|
9 |
import time
|
10 |
from base64 import b64encode
|
11 |
-
import sys
|
12 |
|
13 |
load_dotenv()
|
14 |
# check for ANTHROPIC_API_KEY
|
@@ -26,9 +25,6 @@ def prepare_playwright_if_needed():
|
|
26 |
os.system("playwright install chromium")
|
27 |
|
28 |
|
29 |
-
prepare_playwright_if_needed()
|
30 |
-
|
31 |
-
|
32 |
def apply_tailwind(content):
|
33 |
return f"""
|
34 |
<!DOCTYPE html>
|
@@ -218,4 +214,5 @@ demo = gr.Interface(
|
|
218 |
|
219 |
|
220 |
if __name__ == "__main__":
|
|
|
221 |
demo.launch()
|
|
|
8 |
from typing import Literal
|
9 |
import time
|
10 |
from base64 import b64encode
|
|
|
11 |
|
12 |
load_dotenv()
|
13 |
# check for ANTHROPIC_API_KEY
|
|
|
25 |
os.system("playwright install chromium")
|
26 |
|
27 |
|
|
|
|
|
|
|
28 |
def apply_tailwind(content):
|
29 |
return f"""
|
30 |
<!DOCTYPE html>
|
|
|
214 |
|
215 |
|
216 |
if __name__ == "__main__":
|
217 |
+
prepare_playwright_if_needed()
|
218 |
demo.launch()
|