Update inference
Browse files
README.md
CHANGED
@@ -171,9 +171,12 @@ for text in generated:
|
|
171 |
section = section.replace("directions:", "")
|
172 |
headline = "DIRECTIONS"
|
173 |
|
174 |
-
|
175 |
-
|
176 |
-
|
|
|
|
|
|
|
177 |
|
178 |
print("-" * 130)
|
179 |
```
|
|
|
171 |
section = section.replace("directions:", "")
|
172 |
headline = "DIRECTIONS"
|
173 |
|
174 |
+
if headline == "TITLE":
|
175 |
+
print(f"[{headline}]: {section.strip().capitalize()}")
|
176 |
+
else:
|
177 |
+
section_info = [f" - {i+1}: {info.strip().capitalize()}" for i, info in enumerate(section.split("--"))]
|
178 |
+
print(f"[{headline}]:")
|
179 |
+
print("\n".join(section_info))
|
180 |
|
181 |
print("-" * 130)
|
182 |
```
|