Spaces:
Running
Running
import gradio as gr | |
def create_display(): | |
text = """ | |
<div style="text-align: center;"> | |
<img src="https://upload.wikimedia.org/wikipedia/commons/4/44/Microsoft_logo.svg" alt="Microsoft Logo" style="width: 150px; margin-bottom: 20px;"> | |
<div style="font-size: 36px; font-weight: bold;"> | |
Try OmniParser in this space: | |
<a href="https://huggingface.co/spaces/jadechoghari/OmniParser" style="font-size: 36px; color: #007bff; font-weight: bold;">OmniParser Link</a> | |
</div> | |
</div> | |
""" | |
return text | |
with gr.Blocks() as app: | |
gr.HTML(create_display) | |
# try: | |
# ignore = gr.Interface.load("models/microsoft/OmniParser") | |
# except Exception as e: | |
# print(f"Warning: Failed to load model due to {e}. Continuing without model.") | |
app.launch() | |