Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -120,7 +120,18 @@ with gr.Blocks(title="General Website Scraper", theme=gr.themes.Soft()) as demo:
|
|
| 120 |
visible=False,
|
| 121 |
interactive=False
|
| 122 |
)
|
| 123 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
def process_scrape(url, site_name, site_description, site_category, max_pages, max_depth, delay, external_links):
|
| 125 |
"""
|
| 126 |
The function `process_scrape` takes in parameters related to website scraping, performs the
|
|
@@ -316,4 +327,5 @@ if __name__ == "__main__":
|
|
| 316 |
|
| 317 |
|
| 318 |
# @https://google.github.io/adk-docs/get-started/installation/
|
| 319 |
-
# use process scrape to extract above link and of maxpages of 2 and mergepdf using process_merge_to_pdf
|
|
|
|
|
|
| 120 |
visible=False,
|
| 121 |
interactive=False
|
| 122 |
)
|
| 123 |
+
gr.Markdown("## Related Video Demo")
|
| 124 |
+
youtube_embed = gr.HTML(
|
| 125 |
+
value="""
|
| 126 |
+
<div style='text-align: center;'>
|
| 127 |
+
<iframe width='560' height='315' src='https://www.youtube.com/embed/Wf2CqjQgOcI'
|
| 128 |
+
frameborder='0' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture'
|
| 129 |
+
allowfullscreen></iframe>
|
| 130 |
+
</div>
|
| 131 |
+
""",
|
| 132 |
+
label="Tutorial Video",
|
| 133 |
+
visible=True
|
| 134 |
+
)
|
| 135 |
def process_scrape(url, site_name, site_description, site_category, max_pages, max_depth, delay, external_links):
|
| 136 |
"""
|
| 137 |
The function `process_scrape` takes in parameters related to website scraping, performs the
|
|
|
|
| 327 |
|
| 328 |
|
| 329 |
# @https://google.github.io/adk-docs/get-started/installation/
|
| 330 |
+
# use process scrape to extract above link and of maxpages of 2 and mergepdf using process_merge_to_pdf
|
| 331 |
+
|