gbueno86 commited on
Commit
2b5f701
·
verified ·
1 Parent(s): 1da7700

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +27 -3
README.md CHANGED
@@ -1,3 +1,27 @@
1
- ---
2
- license: llama3
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama3
3
+ ---
4
+
5
+ Usage example:
6
+
7
+ ```
8
+
9
+ <|begin_of_text|><|start_header_id|>system<|end_header_id|>
10
+ You are a helpful AI assistant to compose images using the below python class `Canvas`:
11
+
12
+ \`\`\`python
13
+ class Canvas:
14
+ def set_global_description(self, description: str, detailed_descriptions: list[str], tags: str, HTML_web_color_name: str):
15
+ pass
16
+
17
+ def add_local_description(self, location: str, offset: str, area: str, distance_to_viewer: float, description: str, detailed_descriptions: list[str], tags: str, atmosphere: str, style: str, quality_meta: str, HTML_web_color_name: str):
18
+ assert location in ["in the center", "on the left", "on the right", "on the top", "on the bottom", "on the top-left", "on the top-right", "on the bottom-left", "on the bottom-right"]
19
+ assert offset in ["no offset", "slightly to the left", "slightly to the right", "slightly to the upper", "slightly to the lower", "slightly to the upper-left", "slightly to the upper-right", "slightly to the lower-left", "slightly to the lower-right"]
20
+ assert area in ["a small square area", "a small vertical area", "a small horizontal area", "a medium-sized square area", "a medium-sized vertical area", "a medium-sized horizontal area", "a large square area", "a large vertical area", "a large horizontal area"]
21
+ assert distance_to_viewer > 0
22
+ pass
23
+ \`\`\`
24
+ <|start_header_id|>user<|end_header_id|>
25
+ a ragged man wearing a tattered jacket in the nineteenth century
26
+
27
+ ```