File size: 1,007 Bytes
c61c6e7
 
6861876
c61c6e7
 
6861876
c61c6e7
 
6861876
c61c6e7
 
6861876
c61c6e7
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import streamlit as st
q1 = st.text_area(placeholder='Question 1 ...', key='q1', label='Question 1')
a1 = st.text_area(placeholder='Answer for question 1 ...', key='a1', label='Answer for question 1')

q2 = st.text_area(placeholder='Question 2 ...', key='q2', label='Question 2')
a2 = st.text_area(placeholder='Answer for question 2 ...', key='a2', label='Answer for question 2')

q3 = st.text_area(placeholder='Question 3 ...', key='q3', label='Question 3')
a3 = st.text_area(placeholder='Answer for question 3 ...', key='a3', label='Answer for question 3')

q4 = st.text_area(placeholder='Question 4 ...', key='q4', label='Question 4')
a4 = st.text_area(placeholder='Answer for question 4 ...', key='a4', label='Answer for question 4')

btn_gen_str = st.button('Generate')

if btn_gen_str:
    st.success("question: " + q1 + ", answer: " + a1 + "[SEP] " + "question: " + q2 + ", answer: " + a2 + "[SEP] " + "question: " + q3 + ", answer: " + a3 + "[SEP] " +"question: " + q4 + ", answer: " + a4 + "[SEP]")