Spaces:
Sleeping
Sleeping
| """ | |
| Hugging Face Space - Text Adventure Agent Submission | |
| This is a code-only Space for submitting your agent implementation. | |
| The evaluation is run separately. | |
| Files in this submission: | |
| - agent.py: Your ReAct agent implementation | |
| - mcp_server.py: Your MCP server implementation | |
| - requirements.txt: Additional dependencies | |
| To test locally: | |
| fastmcp dev mcp_server.py | |
| python agent.py | |
| """ | |
| import gradio as gr | |
| from pathlib import Path | |
| # Create the Gradio interface | |
| with gr.Blocks(title="Text Adventure Agent Submission") as demo: | |
| report_path = Path(__file__).parent / "report.md" | |
| if report_path.exists(): | |
| gr.Markdown(report_path.read_text()) | |
| else: | |
| gr.Markdown("*Report not found.*") | |
| if __name__ == "__main__": | |
| demo.launch() | |