Afeezee commited on
Commit
b7b16b0
·
verified ·
1 Parent(s): 5dc0293

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -18
app.py CHANGED
@@ -14,13 +14,6 @@ def generate_svg(description):
14
  Create an SVG architecture diagram for {description} with the following specifications:
15
  1. Canvas Setup:
16
  - Use viewBox="0 0 800 600"
17
- - Include marker definitions for arrows (both unidirectional and bidirectional)
18
-
19
- 2. Required Components:
20
- [List your main components, like:]
21
- - Component A: [description]
22
- - Component B: [description]
23
- [Add more as needed]
24
 
25
  3. Visual Style Requirements:
26
  - Use rounded rectangles (rx="10") for components
@@ -34,20 +27,12 @@ def generate_svg(description):
34
  - Maintain clear spacing between components
35
  - Avoid line crossings in connections
36
 
37
- 5. Connection Requirements:
38
- - Show data flow between components using arrows when needed
39
- - Specify which connections need bidirectional arrows
40
- - Use consistent line thickness and color
41
-
42
  6. Additional Requirements:
43
  Put the name of the Diagram in bold on top
44
- [Add any specific requirements like:]
45
- - Specific grouping of components
46
- - Color coding rules
47
- - Special annotations or labels
48
- - Any component-specific styling
49
 
50
- Please generate a complete SVG code that can be directly used, with components properly positioned and all connections clearly defined. Ensure the code follows SVG best practices and includes proper spacing and formatting for readability.
51
  Make sure it's just the code only
52
  Generate the correct code, ensure it is free from construct error and this kind of error: Unescaped '<' not allowed in attributes values"""},
53
  {"role": "user", "content": description}
 
14
  Create an SVG architecture diagram for {description} with the following specifications:
15
  1. Canvas Setup:
16
  - Use viewBox="0 0 800 600"
 
 
 
 
 
 
 
17
 
18
  3. Visual Style Requirements:
19
  - Use rounded rectangles (rx="10") for components
 
27
  - Maintain clear spacing between components
28
  - Avoid line crossings in connections
29
 
 
 
 
 
 
30
  6. Additional Requirements:
31
  Put the name of the Diagram in bold on top
32
+ - Multiple Color coding
33
+
 
 
 
34
 
35
+ Please generate a complete SVG code that can be directly used. Ensure the code follows SVG best practices and includes proper spacing and formatting for readability.
36
  Make sure it's just the code only
37
  Generate the correct code, ensure it is free from construct error and this kind of error: Unescaped '<' not allowed in attributes values"""},
38
  {"role": "user", "content": description}