Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,6 +28,8 @@ def generate(starting_text):
|
|
28 |
response_list.append(resp)
|
29 |
|
30 |
response_end = "\n".join(response_list)
|
|
|
|
|
31 |
if response_end != "":
|
32 |
return response_end
|
33 |
if count == 5:
|
|
|
28 |
response_list.append(resp)
|
29 |
|
30 |
response_end = "\n".join(response_list)
|
31 |
+
response_end = re.sub('[^ ]+\.[^ ]+','', response_end)
|
32 |
+
response_end = response_end.replace("<", "").replace(">", "")
|
33 |
if response_end != "":
|
34 |
return response_end
|
35 |
if count == 5:
|