Spaces:
Sleeping
Sleeping
Download app.py from PYAE1994/vscode-server: direct link, hf CLI and curl.
- Browser
- Download file 929 Bytes
-
https://huggingface.co/spaces/PYAE1994/vscode-server/resolve/main/app.py
- Command line
-
hf download hf://spaces/PYAE1994/vscode-server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/PYAE1994/vscode-server/resolve/main/app.py
929 Bytes
| """ | |
| 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") |