broadfield-dev commited on
Commit
996229b
·
verified ·
1 Parent(s): cccd314

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -8
app.py CHANGED
@@ -47,12 +47,13 @@ def main_ui():
47
  else:
48
  gr.Markdown("_(KeyLock Wallet image decoding disabled: library not found.)_")
49
  with gr.Accordion("📣 Example Prompt", open=False):
50
- gr.Markdown("""# Prompt:
 
51
 
52
  Generate program files for a project as a single plain text string, strictly adhering to the markdown format below. **Every single line**, including backticks, language identifiers, file content, and empty lines, **must** be prefixed with '# ' to comment it out. This is critical to avoid code box interference. The output must include a complete file structure and the contents of each file, with all necessary code and configurations for a functional project. **Do not deviate from this format under any circumstances.**
53
 
54
  # Format (exact return format with single leading "# "):
55
- ```plaintext
56
  # # Space: [owner/project-name]
57
  # ## File Structure
58
  # ```
@@ -75,9 +76,7 @@ Generate program files for a project as a single plain text string, strictly adh
75
  # ```
76
  #
77
  # ... (repeat for each file)
78
- ```
79
  # Correct Example Output (exact, every line prefixed with '# '):
80
- ```markdown
81
  # # Space: user/my-app
82
  # ## File Structure
83
  # ```
@@ -97,14 +96,11 @@ Generate program files for a project as a single plain text string, strictly adh
97
  # ```text
98
  # gradio==4.44.0
99
  # ```
100
- ```
101
  # Incorrect Example Output:
102
- ```markdown
103
  ## ## File Structure <- INCORRECT: AI used "## " instead of "# "
104
  ## ```text <- INCORRECT
105
  ## 📁 Root <- INCORRECT (missing "# ")
106
  # # # 📁 Root <- INCORRECT: AI used "# # #" instead of "# "
107
- ```
108
 
109
  # Instructions:
110
  - Use exactly `# # Space: [owner/project-name]` as the header (e.g., `user/my-app`).
@@ -115,7 +111,7 @@ Generate program files for a project as a single plain text string, strictly adh
115
  - Provide accurate, functional code or content for each file, suitable for the project’s purpose.
116
  - Ensure the output is concise, complete, and parseable to extract file structure and contents.
117
  - Output everything as a single plain text string within one code box.
118
- """)
119
 
120
  # --- Main Application Tabs ---
121
  with gr.Tabs():
 
47
  else:
48
  gr.Markdown("_(KeyLock Wallet image decoding disabled: library not found.)_")
49
  with gr.Accordion("📣 Example Prompt", open=False):
50
+ gr.Markdown("""```plaintext
51
+ # Prompt:
52
 
53
  Generate program files for a project as a single plain text string, strictly adhering to the markdown format below. **Every single line**, including backticks, language identifiers, file content, and empty lines, **must** be prefixed with '# ' to comment it out. This is critical to avoid code box interference. The output must include a complete file structure and the contents of each file, with all necessary code and configurations for a functional project. **Do not deviate from this format under any circumstances.**
54
 
55
  # Format (exact return format with single leading "# "):
56
+
57
  # # Space: [owner/project-name]
58
  # ## File Structure
59
  # ```
 
76
  # ```
77
  #
78
  # ... (repeat for each file)
 
79
  # Correct Example Output (exact, every line prefixed with '# '):
 
80
  # # Space: user/my-app
81
  # ## File Structure
82
  # ```
 
96
  # ```text
97
  # gradio==4.44.0
98
  # ```
 
99
  # Incorrect Example Output:
 
100
  ## ## File Structure <- INCORRECT: AI used "## " instead of "# "
101
  ## ```text <- INCORRECT
102
  ## 📁 Root <- INCORRECT (missing "# ")
103
  # # # 📁 Root <- INCORRECT: AI used "# # #" instead of "# "
 
104
 
105
  # Instructions:
106
  - Use exactly `# # Space: [owner/project-name]` as the header (e.g., `user/my-app`).
 
111
  - Provide accurate, functional code or content for each file, suitable for the project’s purpose.
112
  - Ensure the output is concise, complete, and parseable to extract file structure and contents.
113
  - Output everything as a single plain text string within one code box.
114
+ """```)
115
 
116
  # --- Main Application Tabs ---
117
  with gr.Tabs():