Omnibus commited on
Commit
f9dbd05
·
verified ·
1 Parent(s): b47521e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -10,10 +10,10 @@ PAGE_LINK
10
  """
11
 
12
 
13
- def make_tree(url):
14
  link_box=[]
15
  html_out=""
16
- feed1 = requests.get(url)
17
  spl = feed1.text.split("href=")
18
  for line in spl:
19
  spl2 = line.split(">")[0]
@@ -24,7 +24,7 @@ def make_tree(url):
24
  return gr.update(choices=[l for l in link_box],interactive=True)
25
 
26
  def run():
27
- out=make_tree(main_directory)
28
  return out
29
 
30
  with gr.Blocks() as app:
 
10
  """
11
 
12
 
13
+ def make_tree(url=""):
14
  link_box=[]
15
  html_out=""
16
+ feed1 = requests.get(f'{main_directory}{url}')
17
  spl = feed1.text.split("href=")
18
  for line in spl:
19
  spl2 = line.split(">")[0]
 
24
  return gr.update(choices=[l for l in link_box],interactive=True)
25
 
26
  def run():
27
+ out=make_tree()
28
  return out
29
 
30
  with gr.Blocks() as app: