Spaces:
Runtime error
Runtime error
upd
Browse files- gradio_seg2image.py +2 -5
gradio_seg2image.py
CHANGED
@@ -30,11 +30,8 @@ def create_imgcomp(input_image, result_image): #(input_image, filename):
|
|
30 |
encoded_string_in = encode(input_image)
|
31 |
encoded_string_out = encode(result_image)
|
32 |
|
33 |
-
|
34 |
-
htmltag = '<img src= "data:image/jpeg;base64,' +
|
35 |
-
#htmltag = '<img src= "data:image/jpeg;base64,' + encoded_string + '" alt="Original Image"/></div> <img src= "https://ysharma-controlnet-image-comparison.hf.space/file=' + filename + '" alt="Control Net Image"/>'
|
36 |
-
#https://ysharma-controlnetsegmentation.hf.space/file=/tmp/tmpqcz9yeta.png
|
37 |
-
#https://ysharma-controlnet-image-comparison.hf.space/file=/tmp/tmpg4qx22xy.png
|
38 |
print(f"htmltag is ^^ - {htmltag}")
|
39 |
desc = """
|
40 |
<!DOCTYPE html>
|
|
|
30 |
encoded_string_in = encode(input_image)
|
31 |
encoded_string_out = encode(result_image)
|
32 |
|
33 |
+
htmltag = '<img src= "data:image/jpeg;base64,' + encoded_string_in + '" alt="Original Image" width="500"/></div> <img src= "data:image/jpeg;base64,' + encoded_string_out + '" alt="Control Net Image" width="500"/>'
|
34 |
+
#sample - htmltag = '<img src= "data:image/jpeg;base64,' + encoded_string + '" alt="Original Image"/></div> <img src= "https://ysharma-controlnet-image-comparison.hf.space/file=' + filename + '" alt="Control Net Image"/>'
|
|
|
|
|
|
|
35 |
print(f"htmltag is ^^ - {htmltag}")
|
36 |
desc = """
|
37 |
<!DOCTYPE html>
|