Spaces:
Running
Running
Commit
·
c2b627a
1
Parent(s):
dde0c58
adding cancel button
Browse files
app.py
CHANGED
@@ -108,13 +108,17 @@ with gr.Blocks() as iface:
|
|
108 |
gr.Markdown("After entering your API key, click 'Count URLs' to determine the number of URLs to be scraped. Then, click 'Scrape URLs' to begin the process.")
|
109 |
|
110 |
with gr.Row():
|
111 |
-
|
112 |
-
|
|
|
|
|
113 |
|
114 |
with gr.Row():
|
115 |
-
|
116 |
-
|
117 |
-
|
|
|
|
|
118 |
|
119 |
file_output = gr.File(label="Download Scraped Content")
|
120 |
|
|
|
108 |
gr.Markdown("After entering your API key, click 'Count URLs' to determine the number of URLs to be scraped. Then, click 'Scrape URLs' to begin the process.")
|
109 |
|
110 |
with gr.Row():
|
111 |
+
with gr.Column(scale=1):
|
112 |
+
count_button = gr.Button("Count URLs")
|
113 |
+
with gr.Column(scale=1):
|
114 |
+
url_count = gr.Textbox(label="URL Count")
|
115 |
|
116 |
with gr.Row():
|
117 |
+
with gr.Column(scale=1):
|
118 |
+
scrape_button = gr.Button("Scrape URLs")
|
119 |
+
cancel_button = gr.Button("Cancel Scrape")
|
120 |
+
with gr.Column(scale=1):
|
121 |
+
output = gr.Textbox(label="Output", elem_id="output_textbox")
|
122 |
|
123 |
file_output = gr.File(label="Download Scraped Content")
|
124 |
|