Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ import re
|
|
11 |
|
12 |
# Ensure Playwright installs required browsers and dependencies
|
13 |
subprocess.run(["playwright", "install"])
|
14 |
-
|
15 |
|
16 |
# Load environment variables
|
17 |
load_dotenv()
|
@@ -92,9 +92,7 @@ def scrape_and_summarize(prompt, source):
|
|
92 |
with gr.Blocks() as demo:
|
93 |
gr.Markdown("# Scrape websites, no-code version")
|
94 |
gr.Markdown("""
|
95 |
-
|
96 |
-
|
97 |
-
*Note: You might need to add "Output only the results; do not add any comments or include 'JSON OUTPUT' or similar phrases" in your prompt to ensure the LLM only provides the result.*
|
98 |
""")
|
99 |
with gr.Row():
|
100 |
with gr.Column():
|
|
|
11 |
|
12 |
# Ensure Playwright installs required browsers and dependencies
|
13 |
subprocess.run(["playwright", "install"])
|
14 |
+
subprocess.run(["playwright", "install-deps"])
|
15 |
|
16 |
# Load environment variables
|
17 |
load_dotenv()
|
|
|
92 |
with gr.Blocks() as demo:
|
93 |
gr.Markdown("# Scrape websites, no-code version")
|
94 |
gr.Markdown("""
|
95 |
+
Scrape and summarize web content using advanced AI models on the Hugging Face Hub without writing any code. Input your desired prompt and source URL to get started.
|
|
|
|
|
96 |
""")
|
97 |
with gr.Row():
|
98 |
with gr.Column():
|