qa-generator / app.py
vinayakdev's picture
Update app.py
ce96f59
raw
history blame
351 Bytes
import streamlit as st
import generator
from generator import *
i = 0
st.info("There might be some nonsensical q/a, please ignore!.\n")
text_ar = st.text_area("Enter text:")
col1, col2, col3 = st.columns([2,1,2])
if(col2.button("Generate!")):
pairs = creator(text_ar)
for pair in pairs:
st.text(pair)
st.balloons()