Spaces:
Running
Running
File size: 807 Bytes
26075da a671c7f 2ce3f3a a671c7f 9e132ee a671c7f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
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()
|