Download templates/index.html from rabiyulfahim/python_master_visualize_UI: direct link, hf CLI and curl.
- Browser
- Download file 1 kB
-
https://huggingface.co/spaces/rabiyulfahim/python_master_visualize_UI/resolve/eefcf7be980b7d4dd2581ce08dee4e663d686bcb/templates/index.html
- Command line
-
hf download hf://spaces/rabiyulfahim/python_master_visualize_UI@eefcf7be980b7d4dd2581ce08dee4e663d686bcb/templates/index.html
-
curl -L -o index.html https://huggingface.co/spaces/rabiyulfahim/python_master_visualize_UI/resolve/eefcf7be980b7d4dd2581ce08dee4e663d686bcb/templates/index.html
1 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Python Visualizer</title> | |
| <link rel="stylesheet" href="/static/style.css"> | |
| </head> | |
| <body> | |
| <h2>🧠 Python Visualizer</h2> | |
| <form method="post" action="/run"> | |
| <textarea name="code" rows="10" cols="70" placeholder="Enter Python code here...">{{ code or '' }}</textarea><br> | |
| <button type="submit">Run Code</button> | |
| </form> | |
| {% if trace %} | |
| <h3>Execution Trace:</h3> | |
| <ol> | |
| {% for step in trace %} | |
| {% if step.error %} | |
| <li style="color:red;">Error: {{ step.error }}</li> | |
| {% else %} | |
| <li> | |
| <strong>Line {{ step.line }}</strong> → Locals: {{ step.locals }} | |
| </li> | |
| {% endif %} | |
| {% endfor %} | |
| </ol> | |
| {% endif %} | |
| {% if output %} | |
| <h3>Output:</h3> | |
| <pre>{{ output }}</pre> | |
| {% endif %} | |
| </body> | |
| </html> | |