File size: 451 Bytes
c1b9d7d
 
 
 
 
07151db
35b864c
24c253b
35b864c
 
07151db
 
 
 
 
 
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
23
24
import streamlit as st
import generator
from generator import *


st.info("Enter short paragraphs, please, to get better answers.\n")
text_ar = st.text_area("Enter text:")
col1, col2, col3 = st.columns([2,1,2])

if(col2.button("Generate!")):
    text_ar = text_ar.replace("\n", " ")
    text_ar = text_ar.split('.')
    for text in text_ar :
        pairs = creator(text)
        for pair in pairs:
            st.text(pair)
    st.balloons()