Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -210,7 +210,9 @@ function() {
|
|
210 |
}
|
211 |
"""
|
212 |
def prepare_card(im):
|
213 |
-
|
|
|
|
|
214 |
|
215 |
with gr.Blocks() as app:
|
216 |
gr.HTML("""<h1>Interactive Social Media Card Maker</h1>""")
|
@@ -235,7 +237,8 @@ with gr.Blocks() as app:
|
|
235 |
title=gr.Textbox(label="Title")
|
236 |
description=gr.Textbox(label="Description")
|
237 |
link_list=gr.Textbox(label="Image URL")
|
238 |
-
img_card=gr.
|
|
|
239 |
with gr.Column():
|
240 |
prepare_btn=gr.Button("Prepare Card")
|
241 |
bld_btn=gr.Button("Build Card")
|
|
|
210 |
}
|
211 |
"""
|
212 |
def prepare_card(im):
|
213 |
+
out = f"""
|
214 |
+
<div><img src={im}></div>"""
|
215 |
+
return out
|
216 |
|
217 |
with gr.Blocks() as app:
|
218 |
gr.HTML("""<h1>Interactive Social Media Card Maker</h1>""")
|
|
|
237 |
title=gr.Textbox(label="Title")
|
238 |
description=gr.Textbox(label="Description")
|
239 |
link_list=gr.Textbox(label="Image URL")
|
240 |
+
img_card=gr.HTML("""""")
|
241 |
+
#img_card=gr.Image()
|
242 |
with gr.Column():
|
243 |
prepare_btn=gr.Button("Prepare Card")
|
244 |
bld_btn=gr.Button("Build Card")
|