File size: 437 Bytes
c1b9d7d
 
 
a8e1f24
c1b9d7d
d0783e0
35b864c
24c253b
d0783e0
35b864c
07151db
d0783e0
 
 
041a2c6
 
d530085
 
c1b9d7d
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import streamlit as st
import generator
from generator import *
import string

st.info("On a large paragraph, less questions will be produced, for increased accuracy.\n")
text_ar = st.text_area("Enter text:")
col1, col2, col3 = st.columns([2,1,2])
x = st.container()
if(col2.button("Generate!")):
    text_ar = text_ar.replace("\n", " ")
    pairs = creator(text_ar)
    for pair in pairs:
        x.text(pair)
    st.balloons()