qa-generator / app.py
vinayakdev's picture
I am done
b17b9af
raw
history blame
373 Bytes
import streamlit as st
import generator
from generator import *
i = 0
text_ar = st.text_area("Enter text:")
col1, col2, col3 = st.beta_columns([1,1,1])
if(col2.button("Generate!")):
text_ar = text_ar.replace("\n"," ")
pairs = creator(text_ar)
for pair in pairs:
col2.text(pair)
col2.success("Generated!")
with col3:
st.write(' ')