qa-generator / app.py
vinayakdev's picture
add effects
5045bb5
raw
history blame
308 Bytes
import streamlit as st
import generator
from generator import *
text_ar = st.text_area("Enter text:")
i = 0
if(st.button("Generate!")):
text_ar = text_ar.replace("\n"," ")
st.spinner("Generating Q/A, please wait!")
pairs = creator(text_ar)
for pair in pairs:
st.text(pair)
st.snow()