Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -84,9 +84,15 @@ def details_fn(query):
|
|
84 |
border-style: dashed;
|
85 |
border-width: medium;
|
86 |
}
|
|
|
|
|
|
|
87 |
</style>
|
|
|
|
|
88 |
<div id='txt_box'></div>
|
89 |
<div><img id='im_up' src=''></div>
|
|
|
90 |
<div class='im_container'>
|
91 |
"""
|
92 |
images = soup.findAll('img')
|
@@ -100,7 +106,7 @@ def details_fn(query):
|
|
100 |
</div>
|
101 |
"""
|
102 |
print (img['src'])
|
103 |
-
format_out = f"""{image_out}</div>"""
|
104 |
except Exception as e:
|
105 |
format_out = "None"
|
106 |
print (e)
|
@@ -201,9 +207,7 @@ with gr.Blocks() as app:
|
|
201 |
btn = gr.Button("Preview")
|
202 |
details = gr.HTML("""""")
|
203 |
output = gr.HTML("""""")
|
204 |
-
|
205 |
-
inp_im=gr.Textbox(scale=1, label="Drag Image Here")
|
206 |
-
images = gr.HTML("""""")
|
207 |
with gr.Row() as im_row:
|
208 |
txt_btn=gr.Button("Link")
|
209 |
link_list=gr.Textbox()
|
|
|
84 |
border-style: dashed;
|
85 |
border-width: medium;
|
86 |
}
|
87 |
+
.main_box{
|
88 |
+
display:flex;
|
89 |
+
}
|
90 |
</style>
|
91 |
+
<div class='main_box'>
|
92 |
+
<div>
|
93 |
<div id='txt_box'></div>
|
94 |
<div><img id='im_up' src=''></div>
|
95 |
+
</div>
|
96 |
<div class='im_container'>
|
97 |
"""
|
98 |
images = soup.findAll('img')
|
|
|
106 |
</div>
|
107 |
"""
|
108 |
print (img['src'])
|
109 |
+
format_out = f"""{image_out}</div></div>"""
|
110 |
except Exception as e:
|
111 |
format_out = "None"
|
112 |
print (e)
|
|
|
207 |
btn = gr.Button("Preview")
|
208 |
details = gr.HTML("""""")
|
209 |
output = gr.HTML("""""")
|
210 |
+
images = gr.HTML("""""")
|
|
|
|
|
211 |
with gr.Row() as im_row:
|
212 |
txt_btn=gr.Button("Link")
|
213 |
link_list=gr.Textbox()
|