Spaces:
Runtime error
Runtime error
| import streamlit as st | |
| import generator | |
| from generator import * | |
| i = 0 | |
| st.text("To increase the number of questions, please seperate two paragraphs wth one line in between.\n") | |
| text_ar = st.text_area("Enter text:") | |
| col1, col2, col3 = st.columns([2,1,2]) | |
| if(col2.button("Generate!")): | |
| text_ar = text_ar.split("\n\n") | |
| for text in text_ar: | |
| text.replace("\n"," ") | |
| pairs = creator(text) | |
| for pair in pairs: | |
| st.text(pair) | |
| st.balloons() | |