Omnibus commited on
Commit
de7122c
1 Parent(s): 6531b64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -67,9 +67,16 @@ def generate(
67
  lines = output.strip().strip("\n").split("\n")
68
  #history=""
69
  for i,line in enumerate(lines):
70
- if line.startswith("choices:"):
71
- for z in range(1,5):
72
- print(lines[i+z])
 
 
 
 
 
 
 
73
  return output
74
 
75
 
 
67
  lines = output.strip().strip("\n").split("\n")
68
  #history=""
69
  for i,line in enumerate(lines):
70
+ if line.startswith("1. "):
71
+ print(line)
72
+ if line.startswith("2. "):
73
+ print(line)
74
+ if line.startswith("3. "):
75
+ print(line)
76
+ if line.startswith("4. "):
77
+ print(line)
78
+ if line.startswith("5. "):
79
+ print(line)
80
  return output
81
 
82