Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -165,6 +165,12 @@ def format_t(inp):
|
|
165 |
</body>
|
166 |
</html>'''
|
167 |
return out
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
with gr.Blocks() as app:
|
169 |
gr.HTML("""<h1>Interactive Social Media Card Maker</h1>""")
|
170 |
gr.HTML("""<h3><b>Step 1:</b> Enter a URL with Iframe capability</h3>""")
|
@@ -178,10 +184,10 @@ with gr.Blocks() as app:
|
|
178 |
details = gr.HTML("""""")
|
179 |
output = gr.HTML("""""")
|
180 |
images = gr.HTML("""""")
|
181 |
-
|
182 |
gr.Image()
|
183 |
|
184 |
|
185 |
search_btn.click(search_fn,[search_box,num_return],output)
|
186 |
-
btn.click(first,None,output).then(test,input,output).then(details_fn,input,[details,images])
|
187 |
app.launch()
|
|
|
165 |
</body>
|
166 |
</html>'''
|
167 |
return out
|
168 |
+
ab=0
|
169 |
+
def up_im():
|
170 |
+
out=[]
|
171 |
+
for ea in range(10):
|
172 |
+
out.append(gr.Image())
|
173 |
+
return out
|
174 |
with gr.Blocks() as app:
|
175 |
gr.HTML("""<h1>Interactive Social Media Card Maker</h1>""")
|
176 |
gr.HTML("""<h3><b>Step 1:</b> Enter a URL with Iframe capability</h3>""")
|
|
|
184 |
details = gr.HTML("""""")
|
185 |
output = gr.HTML("""""")
|
186 |
images = gr.HTML("""""")
|
187 |
+
with gr.Row() as im_row:
|
188 |
gr.Image()
|
189 |
|
190 |
|
191 |
search_btn.click(search_fn,[search_box,num_return],output)
|
192 |
+
btn.click(first,None,output).then(test,input,output).then(details_fn,input,[details,images]).then(up_im,None,im_row)
|
193 |
app.launch()
|