bogeumkim commited on
Commit
6f28304
·
1 Parent(s): f861aef

Add user input textbox

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -40,10 +40,13 @@ def visit_webpage(url, max_output_length=40000):
40
 
41
  demo = gr.Interface(
42
  fn=visit_webpage,
43
- inputs=gr.Textbox(label="Website URL"),
 
 
 
44
  outputs=gr.Textbox(label="Extracted Section, Directory Paths, and File Paths", show_copy_button=True),
45
  title="Webpage Section and Path Extractor",
46
- description="Enter a website URL. This tool fetches the page, extracts a markdown section, and lists directory paths and files found in that section."
47
  )
48
 
49
  if __name__ == "__main__":
 
40
 
41
  demo = gr.Interface(
42
  fn=visit_webpage,
43
+ inputs=[
44
+ gr.Textbox(label="Website URL"),
45
+ gr.Textbox(label="Files or folders you want to highlight in the README (comma or newline separated)")
46
+ ],
47
  outputs=gr.Textbox(label="Extracted Section, Directory Paths, and File Paths", show_copy_button=True),
48
  title="Webpage Section and Path Extractor",
49
+ description="Enter a website URL. This tool fetches the page, extracts a markdown section, and lists directory paths and files found in that section. You can also specify files or folders you want to highlight in the generated README."
50
  )
51
 
52
  if __name__ == "__main__":