Spaces:
Sleeping
Sleeping
FoodDesert
commited on
Upload app.py
Browse filestrying to fix the squirrel image. stuff that works locally does not work in the huggingface space.
app.py
CHANGED
@@ -656,10 +656,10 @@ with gr.Blocks(css=css) as app:
|
|
656 |
bad_tags_illustrated_string = gr.HighlightedText(show_legend=True, color_map={"Unknown Tag":"red","Duplicate":"yellow","Remove Final Comma":"purple","Move Comma Inside Parentheses":"green"}, label="Annotated Prompt")
|
657 |
with gr.Column(scale=1):
|
658 |
#gr.Image(label=" ", value="transparentsquirrel.png", height=155, width=140)
|
659 |
-
image_path = os.path.join(
|
660 |
#gr.HTML('<div style="text-align: center;"><img src="transparentsquirrel.png" 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=
|
663 |
submit_button = gr.Button(variant="primary")
|
664 |
with gr.Row():
|
665 |
with gr.Column(scale=3):
|
|
|
656 |
bad_tags_illustrated_string = gr.HighlightedText(show_legend=True, color_map={"Unknown Tag":"red","Duplicate":"yellow","Remove Final Comma":"purple","Move Comma Inside Parentheses":"green"}, label="Annotated Prompt")
|
657 |
with gr.Column(scale=1):
|
658 |
#gr.Image(label=" ", value="transparentsquirrel.png", height=155, width=140)
|
659 |
+
#image_path = os.path.join("https://huggingface.co/spaces/FoodDesert/Prompt_Squirrel/resolve/main", "transparentsquirrel.png")
|
660 |
#gr.HTML('<div style="text-align: center;"><img src="transparentsquirrel.png" 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=("transparentsquirrel.png"),show_label=False, show_download_button=False, show_share_button=False, height=200)
|
663 |
submit_button = gr.Button(variant="primary")
|
664 |
with gr.Row():
|
665 |
with gr.Column(scale=3):
|