qa-generator / app.py
vinayakdev's picture
Testing ...
881b675
raw
history blame
477 Bytes
import streamlit as st
import generator
from generator import *
col1, col2, col3 = st.columns(3)
i = 0
with col1 :
st.write(' ')
with col2:
with st.container() :
text_ar = st.text_area("Enter text:")
if(st.button("Generate!")):
text_ar = text_ar.replace("\n"," ")
pairs = creator(text_ar)
for pair in pairs:
st.text(pair)
st.success("Generated!")
with col3:
st.write(' ')