Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -210,8 +210,10 @@ function() {
|
|
| 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:
|
|
|
|
| 210 |
}
|
| 211 |
"""
|
| 212 |
def prepare_card(im):
|
| 213 |
+
if not im.startswith("https:"):
|
| 214 |
+
im = f'https:{im}'
|
| 215 |
out = f"""
|
| 216 |
+
<div><img src='{im}'></div>"""
|
| 217 |
return out
|
| 218 |
|
| 219 |
with gr.Blocks() as app:
|