m3hrdadfi commited on
Commit
461e9ba
1 Parent(s): 37cb1d7

Update inference

Browse files
Files changed (1) hide show
  1. README.md +6 -3
README.md CHANGED
@@ -171,9 +171,12 @@ for text in generated:
171
  section = section.replace("directions:", "")
172
  headline = "DIRECTIONS"
173
 
174
- section_info = [f" - {i+1}: {info.strip().capitalize()}" for i, info in enumerate(section.split("--"))]
175
- print(f"[{headline}]:")
176
- print("\n".join(section_info))
 
 
 
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
  ```