Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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("
|
| 71 |
-
|
| 72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|