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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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(f'{main_directory}{url}')
17
  spl = feed1.text.split("href=")
18
  for line in spl:
19
  spl2 = line.split(">")[0]
@@ -36,7 +36,7 @@ with gr.Blocks() as app:
36
  links=gr.JSON()
37
  html_=gr.HTML()
38
  drop1.change(make_tree,drop1,drop2)
39
- drop2.change(make_tree,drop2,drop3)
40
- drop3.change(make_tree,drop3,drop4)
41
  app.load(run,None,[drop1])
42
  app.launch()
 
10
  """
11
 
12
 
13
+ def make_tree(url1="",url2="",url3="",url4=""):
14
  link_box=[]
15
  html_out=""
16
+ feed1 = requests.get(f'{main_directory}{url1}{url2}{url3}{url4}')
17
  spl = feed1.text.split("href=")
18
  for line in spl:
19
  spl2 = line.split(">")[0]
 
36
  links=gr.JSON()
37
  html_=gr.HTML()
38
  drop1.change(make_tree,drop1,drop2)
39
+ drop2.change(make_tree,[drop1,drop2],drop3)
40
+ drop3.change(make_tree,[drop1,drop2,drop3],drop4)
41
  app.load(run,None,[drop1])
42
  app.launch()