File size: 702 Bytes
adcd9ba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import gradio as gr
from pathlib import Path

def create_hackathon_detail_tab():
    """Create the content for the Hackathon project detail tab."""
    # Read markdown content from file
    md_file = Path(__file__).parent / "hackathon_detail.md"
    markdown_content = md_file.read_text(encoding='utf-8')

    # Get image path
    img_file = Path(__file__).parent / "assets/mcpagent.png"

    with gr.Column():
        gr.Markdown("## Hackathon Project Details")
        with gr.Row():
            with gr.Column(scale=2):
                gr.Markdown(markdown_content)
            with gr.Column(scale=1):
                gr.Image(str(img_file), label="MCP Agent", show_label=False)