Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import requests
|
3 |
import bs4
|
4 |
|
5 |
-
def sort_doc(in_list,steps_in=
|
6 |
control_json={'control':'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ','char':'','leng':62}
|
7 |
text=str(in_list)
|
8 |
|
@@ -53,8 +53,6 @@ def sort_doc(in_list,steps_in=8,control=None):
|
|
53 |
mod=0
|
54 |
pos=len(step_cont_box)-1
|
55 |
|
56 |
-
|
57 |
-
|
58 |
if go:
|
59 |
for i, ea in enumerate(in_list):
|
60 |
if go:
|
@@ -187,7 +185,7 @@ def sitemap(url,level):
|
|
187 |
print (e)
|
188 |
except Exception as e:
|
189 |
print (e)
|
190 |
-
uri_key=sort_doc(link_box)
|
191 |
|
192 |
return link1,link2,uri_key
|
193 |
|
|
|
2 |
import requests
|
3 |
import bs4
|
4 |
|
5 |
+
def sort_doc(in_list,steps_in=0,control=None):
|
6 |
control_json={'control':'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ','char':'','leng':62}
|
7 |
text=str(in_list)
|
8 |
|
|
|
53 |
mod=0
|
54 |
pos=len(step_cont_box)-1
|
55 |
|
|
|
|
|
56 |
if go:
|
57 |
for i, ea in enumerate(in_list):
|
58 |
if go:
|
|
|
185 |
print (e)
|
186 |
except Exception as e:
|
187 |
print (e)
|
188 |
+
uri_key=sort_doc(link_box,8)
|
189 |
|
190 |
return link1,link2,uri_key
|
191 |
|