Spaces:
Build error
Build error
Update selfapi_writer.py
Browse files- selfapi_writer.py +3 -3
selfapi_writer.py
CHANGED
|
@@ -23,10 +23,10 @@ class SelfApiWriter:
|
|
| 23 |
self.initialized = False
|
| 24 |
|
| 25 |
# Configuration for generation
|
| 26 |
-
self.pages_per_chapter =
|
| 27 |
-
self.words_per_page =
|
| 28 |
self.max_iterations = 20
|
| 29 |
-
self.max_tokens =
|
| 30 |
|
| 31 |
# Token encoding
|
| 32 |
self.tokenizer = tiktoken.encoding_for_model("gpt-4")
|
|
|
|
| 23 |
self.initialized = False
|
| 24 |
|
| 25 |
# Configuration for generation
|
| 26 |
+
self.pages_per_chapter = 25 # Approximately 35,000 words
|
| 27 |
+
self.words_per_page = 250
|
| 28 |
self.max_iterations = 20
|
| 29 |
+
self.max_tokens = 15000
|
| 30 |
|
| 31 |
# Token encoding
|
| 32 |
self.tokenizer = tiktoken.encoding_for_model("gpt-4")
|