|
|
import gradio as gr
|
|
|
from pathlib import Path
|
|
|
|
|
|
def create_hackathon_detail_tab():
|
|
|
"""Create the content for the Hackathon project detail tab."""
|
|
|
|
|
|
md_file = Path(__file__).parent / "hackathon_detail.md"
|
|
|
markdown_content = md_file.read_text(encoding='utf-8')
|
|
|
|
|
|
|
|
|
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)
|
|
|
|