Spaces:
Sleeping
Sleeping
| """ | |
| VS Code Server - Gradio Wrapper for Hugging Face Spaces | |
| Manus AI OS - Cloud Development Environment | |
| """ | |
| import os | |
| import gradio as gr | |
| VSCODE_PORT = int(os.environ.get("VSCODE_PORT", "18080")) | |
| with gr.Blocks(title="VS Code Server - Manus AI OS") as demo: | |
| gr.Markdown("# 🖥️ VS Code Server\n\n### Manus AI OS - Cloud Development Environment") | |
| gr.HTML(f''' | |
| <div style="width: 100%; height: calc(100vh - 180px); border: 2px solid #3b82f6; border-radius: 12px; overflow: hidden;"> | |
| <iframe | |
| src="http://localhost:{VSCODE_PORT}" | |
| style="width: 100%; height: 100%; border: none;" | |
| sandbox="allow-scripts allow-same-origin allow-forms allow-popups allow-pointer-lock" | |
| allow="clipboard-read; clipboard-write" | |
| ></iframe> | |
| </div> | |
| ''') | |
| gr.Markdown("--- \n*Powered by Manus AI OS*") | |
| demo.launch(server_port=7860, server_name="0.0.0.0") |