Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -127,6 +127,8 @@ def first():
|
|
127 |
|
128 |
def test(out):
|
129 |
return format_t(f'<div class="container-mee"><div class="put-on-top"><a target="_blank" href="{out}">{out}</a></div><iframe class="responsive-iframe-mee" src="{out}" frameborder="3"></iframe></div>')
|
|
|
|
|
130 |
|
131 |
def format_t(inp):
|
132 |
|
@@ -150,15 +152,20 @@ def format_t(inp):
|
|
150 |
align-content: space-evenly;
|
151 |
}
|
152 |
|
153 |
-
|
154 |
-
|
155 |
position: relative;
|
156 |
overflow: hidden;
|
157 |
width: 48%;
|
158 |
height: 60em;
|
159 |
margin-top:1em;
|
160 |
}
|
161 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
.responsive-iframe-mee {
|
163 |
position: relative;
|
164 |
top: 0;
|
@@ -224,5 +231,5 @@ with gr.Blocks() as app:
|
|
224 |
app.load(None,None,link_list,js=link_js)
|
225 |
images.change(None,None,link_list,trigger_mode="multiple",js=link_js)
|
226 |
search_btn.click(search_fn,[search_box,num_return],output)
|
227 |
-
btn.click(first,None,output).then(
|
228 |
app.launch()
|
|
|
127 |
|
128 |
def test(out):
|
129 |
return format_t(f'<div class="container-mee"><div class="put-on-top"><a target="_blank" href="{out}">{out}</a></div><iframe class="responsive-iframe-mee" src="{out}" frameborder="3"></iframe></div>')
|
130 |
+
def test_single(out):
|
131 |
+
return format_t(f'<div class="container-single"><div class="put-on-top"><a target="_blank" href="{out}">{out}</a></div><iframe class="responsive-iframe-mee" src="{out}" frameborder="3"></iframe></div>')
|
132 |
|
133 |
def format_t(inp):
|
134 |
|
|
|
152 |
align-content: space-evenly;
|
153 |
}
|
154 |
|
155 |
+
.container-mee {
|
|
|
156 |
position: relative;
|
157 |
overflow: hidden;
|
158 |
width: 48%;
|
159 |
height: 60em;
|
160 |
margin-top:1em;
|
161 |
}
|
162 |
+
.container-single {
|
163 |
+
position: relative;
|
164 |
+
overflow: hidden;
|
165 |
+
width: 100%;
|
166 |
+
height: 60em;
|
167 |
+
margin-top:1em;
|
168 |
+
}
|
169 |
.responsive-iframe-mee {
|
170 |
position: relative;
|
171 |
top: 0;
|
|
|
231 |
app.load(None,None,link_list,js=link_js)
|
232 |
images.change(None,None,link_list,trigger_mode="multiple",js=link_js)
|
233 |
search_btn.click(search_fn,[search_box,num_return],output)
|
234 |
+
btn.click(first,None,output).then(test_single,input,output).then(details_fn,input,[details,images])
|
235 |
app.launch()
|