Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -62,10 +62,10 @@ def details_fn(query):
|
|
62 |
description = description['content']
|
63 |
except Exception as e:
|
64 |
description = title
|
65 |
-
file = open("myfile.txt", "w")
|
66 |
-
file.close()
|
67 |
out = f"""
|
68 |
<center><h3>{title}</h3><br>{description}</center>"""
|
|
|
|
|
69 |
return out
|
70 |
|
71 |
def first():
|
@@ -143,6 +143,7 @@ with gr.Blocks() as app:
|
|
143 |
btn = gr.Button("Preview")
|
144 |
details = gr.HTML("""""")
|
145 |
output = gr.HTML("""""")
|
|
|
146 |
|
147 |
|
148 |
search_btn.click(search_fn,[search_box,num_return],output)
|
|
|
62 |
description = description['content']
|
63 |
except Exception as e:
|
64 |
description = title
|
|
|
|
|
65 |
out = f"""
|
66 |
<center><h3>{title}</h3><br>{description}</center>"""
|
67 |
+
images = soup.findall('img')
|
68 |
+
print (images)
|
69 |
return out
|
70 |
|
71 |
def first():
|
|
|
143 |
btn = gr.Button("Preview")
|
144 |
details = gr.HTML("""""")
|
145 |
output = gr.HTML("""""")
|
146 |
+
images = gr.HTML("""""")
|
147 |
|
148 |
|
149 |
search_btn.click(search_fn,[search_box,num_return],output)
|