dan-vdb commited on
Commit
6680b8d
·
1 Parent(s): 7dbe64d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -38,6 +38,5 @@ with st.form("my_form"):
38
 
39
  if submitted:
40
  text = pipe(text, num_return_sequences=1, max_length=200, repetition_penalty=2.0)[0]["generated_text"]
41
- text = re.sub("( [A-Z])", r"\n\1", text)
42
- for t in text:
43
- st.write(t)
 
38
 
39
  if submitted:
40
  text = pipe(text, num_return_sequences=1, max_length=200, repetition_penalty=2.0)[0]["generated_text"]
41
+ text = re.sub("( [A-Z])", r" \n\1", text)
42
+ st.write(text)