Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ def scrape(url, tags):
|
|
| 13 |
all_data.append(f"Results for <{tag}>:\n" + "\n".join(data))
|
| 14 |
return "\n\n".join(all_data) if all_data else "No data found!"
|
| 15 |
|
| 16 |
-
# Gradio Blocks with
|
| 17 |
with gr.Blocks(css="""
|
| 18 |
body {
|
| 19 |
background: linear-gradient(135deg, #89f7fe, #66a6ff);
|
|
@@ -60,7 +60,7 @@ h1 {
|
|
| 60 |
|
| 61 |
with gr.Row():
|
| 62 |
with gr.Column():
|
| 63 |
-
with gr.
|
| 64 |
url_input = gr.Textbox(label="Enter Blog URL", placeholder="https://example.com")
|
| 65 |
tag_input = gr.Textbox(label="Enter Tags (comma separated, e.g., h1,h2,h3)", value="h2")
|
| 66 |
|
|
@@ -74,7 +74,7 @@ h1 {
|
|
| 74 |
scrape_btn = gr.Button("Scrape Blog")
|
| 75 |
|
| 76 |
with gr.Column():
|
| 77 |
-
with gr.
|
| 78 |
output = gr.Textbox(label="Scraped Titles", interactive=False)
|
| 79 |
copy_btn = gr.Button("Copy to Clipboard")
|
| 80 |
|
|
|
|
| 13 |
all_data.append(f"Results for <{tag}>:\n" + "\n".join(data))
|
| 14 |
return "\n\n".join(all_data) if all_data else "No data found!"
|
| 15 |
|
| 16 |
+
# Gradio Blocks with updated UI
|
| 17 |
with gr.Blocks(css="""
|
| 18 |
body {
|
| 19 |
background: linear-gradient(135deg, #89f7fe, #66a6ff);
|
|
|
|
| 60 |
|
| 61 |
with gr.Row():
|
| 62 |
with gr.Column():
|
| 63 |
+
with gr.Group(css_class="glass-card"):
|
| 64 |
url_input = gr.Textbox(label="Enter Blog URL", placeholder="https://example.com")
|
| 65 |
tag_input = gr.Textbox(label="Enter Tags (comma separated, e.g., h1,h2,h3)", value="h2")
|
| 66 |
|
|
|
|
| 74 |
scrape_btn = gr.Button("Scrape Blog")
|
| 75 |
|
| 76 |
with gr.Column():
|
| 77 |
+
with gr.Group(css_class="glass-card output-box"):
|
| 78 |
output = gr.Textbox(label="Scraped Titles", interactive=False)
|
| 79 |
copy_btn = gr.Button("Copy to Clipboard")
|
| 80 |
|