Spaces:
Running
Running
FoodDesert
commited on
Commit
•
62e022b
1
Parent(s):
5e59db6
Upload app.py
Browse filestrying another host for the mascot image.
app.py
CHANGED
@@ -718,7 +718,9 @@ with gr.Blocks(css=css) as app:
|
|
718 |
#random_image_path = os.path.join('mascotimages', random.choice([f for f in os.listdir('mascotimages') if os.path.isfile(os.path.join('mascotimages', f))]))
|
719 |
#with Image.open(random_image_path) as img:
|
720 |
# gr.Image(value=img,show_label=False, show_download_button=False, show_share_button=False, height=200)
|
721 |
-
gr.Image(value="https://huggingface.co/spaces/FoodDesert/Prompt_Squirrel/resolve/main/mascotimages/transparentsquirrel.png",show_label=False, show_download_button=False, show_share_button=False, height=200)
|
|
|
|
|
722 |
submit_button = gr.Button(variant="primary")
|
723 |
with gr.Row():
|
724 |
with gr.Column(scale=3):
|
|
|
718 |
#random_image_path = os.path.join('mascotimages', random.choice([f for f in os.listdir('mascotimages') if os.path.isfile(os.path.join('mascotimages', f))]))
|
719 |
#with Image.open(random_image_path) as img:
|
720 |
# gr.Image(value=img,show_label=False, show_download_button=False, show_share_button=False, height=200)
|
721 |
+
#gr.Image(value="https://huggingface.co/spaces/FoodDesert/Prompt_Squirrel/resolve/main/mascotimages/transparentsquirrel.png",show_label=False, show_download_button=False, show_share_button=False, height=200)
|
722 |
+
#I posted the image to discord, and that's where this link came from. This is a very ugly way to do this, but I could not, no matter what I tried, get it to display an image from within the space itself. The galleries work fine for some reason, but not this.
|
723 |
+
gr.Image(value="https://res.cloudinary.com/dnse84ol6/image/upload/v1713538125/transparentsquirrel_zhou7f.png",show_label=False, show_download_button=False, show_share_button=False, height=200)
|
724 |
submit_button = gr.Button(variant="primary")
|
725 |
with gr.Row():
|
726 |
with gr.Column(scale=3):
|