File size: 462 Bytes
8562f6b
 
4458a4d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8562f6b
 
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

# Add a model selector to the sidebar
model = st.sidebar.selectbox(
    'Select Model',
    ('t5-base-squad-qa-qg', 't5-small-squad-qa-qg', 't5-base-hotpot-qa-qg', 't5-small-hotpot-qa-qg')
)

st.header('Question-Answer Generation')
st.write(f'Model in use: {model}')

txt = st.text_area('Text for context')


if len(txt) >= 1:
    autocards = []
else:
    autocards = []

st.header('Generated question and answers')
st.write(autocards)