ysharma HF staff commited on
Commit
789f043
·
1 Parent(s): 3edcdc0
Files changed (1) hide show
  1. gradio_seg2image.py +1 -1
gradio_seg2image.py CHANGED
@@ -30,7 +30,7 @@ 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
- 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 = """
 
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" height="500"/></div> <img src= "data:image/jpeg;base64,' + encoded_string_out + '" alt="Control Net Image" height="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 = """