Spaces:
Runtime error
Runtime error
Commit
·
aa69e68
1
Parent(s):
2a22742
Update to split paaragraphs
Browse files
app.py
CHANGED
|
@@ -8,15 +8,17 @@ from generator import *
|
|
| 8 |
|
| 9 |
i = 0
|
| 10 |
|
| 11 |
-
|
| 12 |
text_ar = st.text_area("Enter text:")
|
| 13 |
col1, col2, col3 = st.columns([2,1,2])
|
| 14 |
|
| 15 |
if(col2.button("Generate!")):
|
| 16 |
-
text_ar = text_ar.
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
| 20 |
st.balloons()
|
| 21 |
|
| 22 |
|
|
|
|
| 8 |
|
| 9 |
i = 0
|
| 10 |
|
| 11 |
+
st.text("To increase the number of questions, please seperate two paragraphs wth one line in between.\n")
|
| 12 |
text_ar = st.text_area("Enter text:")
|
| 13 |
col1, col2, col3 = st.columns([2,1,2])
|
| 14 |
|
| 15 |
if(col2.button("Generate!")):
|
| 16 |
+
text_ar = text_ar.split("\n\n")
|
| 17 |
+
for text in text_arr:
|
| 18 |
+
text.replace("\n"," ")
|
| 19 |
+
pairs = creator(text)
|
| 20 |
+
for pair in pairs:
|
| 21 |
+
st.text(pair)
|
| 22 |
st.balloons()
|
| 23 |
|
| 24 |
|