FoodDesert commited on
Commit
503dc78
1 Parent(s): e6bc84e

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -656,13 +656,11 @@ with gr.Blocks(css=css) as app:
656
  with gr.Column(scale=1):
657
  #image_path = os.path.join("https://huggingface.co/spaces/FoodDesert/Prompt_Squirrel/resolve/main", "transparentsquirrel.png")
658
  #gr.Image(label=" ", value=image_path, height=155, width=140)
659
- image_path = os.path.join('mascotimages', "transparentsquirrel.png")
660
  #gr.HTML('<div style="text-align: center;"><img src={image_path} alt="Cute Mascot" style="max-height: 100px; background: transparent;"></div><br>')
661
  #gr.HTML("<br>" * 2) # Adjust the number of line breaks ("<br>") as needed to push the button down
662
- gr.Image(value=image_path,show_label=False, show_download_button=False, show_share_button=False, height=200)
663
-
664
- print(image_path)
665
-
666
  submit_button = gr.Button(variant="primary")
667
  with gr.Row():
668
  with gr.Column(scale=3):
 
656
  with gr.Column(scale=1):
657
  #image_path = os.path.join("https://huggingface.co/spaces/FoodDesert/Prompt_Squirrel/resolve/main", "transparentsquirrel.png")
658
  #gr.Image(label=" ", value=image_path, height=155, width=140)
 
659
  #gr.HTML('<div style="text-align: center;"><img src={image_path} alt="Cute Mascot" style="max-height: 100px; background: transparent;"></div><br>')
660
  #gr.HTML("<br>" * 2) # Adjust the number of line breaks ("<br>") as needed to push the button down
661
+ image_path = os.path.join('mascotimages', "transparentsquirrel.png")
662
+ with Image.open(image_path) as img:
663
+ gr.Image(value=img,show_label=False, show_download_button=False, show_share_button=False, height=200)
 
664
  submit_button = gr.Button(variant="primary")
665
  with gr.Row():
666
  with gr.Column(scale=3):