cyberandy commited on
Commit
16da44f
1 Parent(s): b2ecedb
Files changed (1) hide show
  1. app.py +22 -6
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", placeholder="Enter the website URL (e.g., example.com)"
 
 
 
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
- generate_btn = gr.Button("Generate llms.txt")
243
- output = gr.Textbox(
244
- label="Generated llms.txt Content", lines=20, show_copy_button=True
245
- )
246
- status = gr.Textbox(label="Status")
 
 
 
 
 
 
 
 
 
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)