Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -65,11 +65,12 @@ def details_fn(query):
|
|
65 |
out = f"""
|
66 |
<center><h3>{title}</h3><br>{description}</center>"""
|
67 |
try:
|
68 |
-
images = soup.findAll('img')
|
69 |
print (images)
|
70 |
except Exeption as e:
|
|
|
71 |
print (e)
|
72 |
-
return out
|
73 |
|
74 |
def first():
|
75 |
out = '''<h1>Loading'''
|
@@ -150,5 +151,5 @@ with gr.Blocks() as app:
|
|
150 |
|
151 |
|
152 |
search_btn.click(search_fn,[search_box,num_return],output)
|
153 |
-
btn.click(first,None,output).then(test,input,output).then(details_fn,input,details)
|
154 |
app.launch()
|
|
|
65 |
out = f"""
|
66 |
<center><h3>{title}</h3><br>{description}</center>"""
|
67 |
try:
|
68 |
+
images = soup.findAll('img','src')
|
69 |
print (images)
|
70 |
except Exeption as e:
|
71 |
+
images = "None"
|
72 |
print (e)
|
73 |
+
return out,images
|
74 |
|
75 |
def first():
|
76 |
out = '''<h1>Loading'''
|
|
|
151 |
|
152 |
|
153 |
search_btn.click(search_fn,[search_box,num_return],output)
|
154 |
+
btn.click(first,None,output).then(test,input,output).then(details_fn,input,[details,images])
|
155 |
app.launch()
|