Leon4gr45's picture
Upload folder using huggingface_hub (part 3)
94193b5 verified
Raw
History Blame Contribute Delete
779 Bytes
import { ProjectTemplate } from '../../project-templates';
import { PYTHON_DOMAIN_PROMPT } from '@/lib/llm/prompts/python';
export const PYTHON_STARTER_PROJECT_TEMPLATE: ProjectTemplate = {
name: 'Starter (Python)',
description: 'Minimal Python script with Pyodide (browser-based CPython)',
directories: [],
files: [
{
path: '/main.py',
content: `# Hello World — Python on Pyodide
# Edit this file and it will auto-execute in the Terminal panel.
def greet(name: str) -> str:
return f"Hello, {name}!"
print(greet("World"))
print()
print("Python is running in your browser via Pyodide.")
print("Try editing this file — it re-runs automatically on save.")
`
},
{
path: '/.PROMPT.md',
content: PYTHON_DOMAIN_PROMPT
}
]
};