Spaces:
Running
Running
update
Browse files
app.py
CHANGED
@@ -228,10 +228,17 @@ async def process_url(url, max_depth, max_pages):
|
|
228 |
theme = gr.themes.Soft(primary_hue="blue", font="Open Sans")
|
229 |
|
230 |
with gr.Blocks(theme=theme) as iface:
|
|
|
|
|
|
|
231 |
with gr.Row():
|
232 |
url_input = gr.Textbox(
|
233 |
-
label="Website URL",
|
|
|
|
|
|
|
234 |
)
|
|
|
235 |
with gr.Row():
|
236 |
depth_input = gr.Slider(
|
237 |
minimum=1, maximum=5, value=3, step=1, label="Maximum Crawl Depth"
|
@@ -239,11 +246,20 @@ with gr.Blocks(theme=theme) as iface:
|
|
239 |
pages_input = gr.Slider(
|
240 |
minimum=10, maximum=100, value=50, step=10, label="Maximum Pages"
|
241 |
)
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
|
248 |
async def process_url_async_wrapper(url, depth, pages):
|
249 |
return await process_url(url, depth, pages)
|
|
|
228 |
theme = gr.themes.Soft(primary_hue="blue", font="Open Sans")
|
229 |
|
230 |
with gr.Blocks(theme=theme) as iface:
|
231 |
+
with gr.Row():
|
232 |
+
gr.Markdown("## Website Crawler - Generate llms.txt")
|
233 |
+
|
234 |
with gr.Row():
|
235 |
url_input = gr.Textbox(
|
236 |
+
label="Website URL",
|
237 |
+
placeholder="Enter the website URL (e.g., example.com)",
|
238 |
+
info="The URL will be automatically prefixed with https:// if not provided",
|
239 |
+
lines=1,
|
240 |
)
|
241 |
+
|
242 |
with gr.Row():
|
243 |
depth_input = gr.Slider(
|
244 |
minimum=1, maximum=5, value=3, step=1, label="Maximum Crawl Depth"
|
|
|
246 |
pages_input = gr.Slider(
|
247 |
minimum=10, maximum=100, value=50, step=10, label="Maximum Pages"
|
248 |
)
|
249 |
+
|
250 |
+
with gr.Row():
|
251 |
+
generate_btn = gr.Button("Generate llms.txt", variant="primary")
|
252 |
+
|
253 |
+
with gr.Row():
|
254 |
+
output = gr.Textbox(
|
255 |
+
label="Generated llms.txt Content",
|
256 |
+
lines=15,
|
257 |
+
show_copy_button=True,
|
258 |
+
container=True,
|
259 |
+
)
|
260 |
+
|
261 |
+
with gr.Row():
|
262 |
+
status = gr.Textbox(label="Status", interactive=False)
|
263 |
|
264 |
async def process_url_async_wrapper(url, depth, pages):
|
265 |
return await process_url(url, depth, pages)
|