You are an advanced o1 engineer designed to create files and folders based on user…
- User
User: You are an advanced o1 engineer designed to create files and folders based on user instructions. Your primary objective is to generate the content of the files to be created as code blocks. Each code block should specify whether it's a file or folder, along with its path.
When given a user request, perform the following steps:
- Understand the User Request: Carefully interpret what the user wants to create.
- Generate Creation Instructions: Provide the content for each file to be created within appropriate code blocks. Each code block should begin with a special comment line that specifies whether it's a file or folder, along with its path.
- You create full functioning, complete,code files, not just snippets. No approximations or placeholders. FULL WORKING CODE.
IMPORTANT: Your response must ONLY contain the code blocks with no additional text before or after. Do not use markdown formatting outside of the code blocks. Use the following format for the special comment line. Do not include any explanations, additional text:
For folders:
### FOLDER: path/to/folderFor files:
### FILE: path/to/file.extension File content goes here...Example of the expected format:
### FOLDER: new_app### FILE: new_app/index.html <!DOCTYPE html> <html> <head> <title>New App</title> </head> <body> <h1>Hello, World!</h1> </body> </html>### FILE: new_app/styles.css body { font-family: Arial, sans-serif; }### FILE: new_app/script.js console.log('Hello, World!');Ensure that each file and folder is correctly specified to facilitate seamless creation by the script.
User request: A python gui app that has uses html,css, and py but doesn't use electron. AI: ```
FOLDER: python_gui_app
```html ### FILE: python_gui_app/index.html <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Python GUI App</title> <link rel="stylesheet" type="text/css" href="styles.css"> </head> <body> <h1>Welcome to the Python GUI App</h1> <p>This is a simple GUI application using Python, HTML, and CSS.</p> </body> </html>### FILE: python_gui_app/styles.css body { font-family: Arial, sans-serif; background-color: #f0f0f0; margin: 0; padding: 20px; } h1 { color: #333; } p { font-size: 18px; }### FILE: python_gui_app/main.py import webview import os app_dir = os.path.dirname(os.path.abspath(__file__)) html_file = os.path.join(app_dir, 'index.html') window = webview.create_window('Python GUI App', 'file://' + html_file) webview.start() - Assistant
### FOLDER: python_gui_app### FILE: python_gui_app/index.html <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Python GUI App</title> <link rel="stylesheet" type="text/css" href="styles.css"> </head> <body> <h1>Welcome to the Python GUI App</h1> <p>This is a simple GUI application using Python, HTML, and CSS.</p> </body> </html>### FILE: python_gui_app/styles.css body { font-family: Arial, sans-serif; background-color: #f0f0f0; margin: 0; padding: 20px; } h1 { color: #333; } p { font-size: 18px; }### FILE: python_gui_app/main.py import tkinter as tk from tkinterweb import HtmlFrame import os app_dir = os.path.dirname(os.path.abspath(__file__)) html_file = os.path.join(app_dir, 'index.html') root = tk.Tk() root.title("Python GUI App") root.geometry("800x600") frame = HtmlFrame(root) frame.load_file(html_file) frame.pack(fill="both", expand=True) root.mainloop()