Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def run_dif(out_prompt):
|
|
37 |
print (f'bytes:: {io.BytesIO(r.content)}')
|
38 |
str_equivalent_image = base64.b64encode(img_buffer.getvalue()).decode()
|
39 |
img_tag = "<img src='data:image/png;base64," + str_equivalent_image + "'/>"
|
40 |
-
out_html+=f"<div><a href='https://huggingface.co/models/{
|
41 |
out = Image.open(io.BytesIO(r.content))
|
42 |
out_box.append(out)
|
43 |
html_out = "<div class='grid_class'>"+out_html+"</div>"
|
|
|
37 |
print (f'bytes:: {io.BytesIO(r.content)}')
|
38 |
str_equivalent_image = base64.b64encode(img_buffer.getvalue()).decode()
|
39 |
img_tag = "<img src='data:image/png;base64," + str_equivalent_image + "'/>"
|
40 |
+
out_html+=f"<div><a href='https://huggingface.co/models/{models[i]}'>{models[i]}</a><br>"+img_tag+"</div>"
|
41 |
out = Image.open(io.BytesIO(r.content))
|
42 |
out_box.append(out)
|
43 |
html_out = "<div class='grid_class'>"+out_html+"</div>"
|