vinayakdev commited on
Commit
c782bf6
1 Parent(s): b55b921
Files changed (1) hide show
  1. app.py +10 -6
app.py CHANGED
@@ -4,16 +4,20 @@ from generator import *
4
 
5
 
6
 
7
-
8
  text_ar = st.text_area("Enter text:")
9
  i = 0
10
- if(st.button("Generate!")):
11
- text_ar = text_ar.replace("\n"," ")
12
- with st.spinner("Generating Q/A, please wait!"):
 
 
13
  pairs = creator(text_ar)
14
  for pair in pairs:
15
- st.text(pair)
16
- st.snow()
 
 
17
 
18
 
19
 
 
4
 
5
 
6
 
7
+ col1, col2, col3 = st.columns(3)
8
  text_ar = st.text_area("Enter text:")
9
  i = 0
10
+ with col1 :
11
+ st.write(' ')
12
+ with col2:
13
+ if(st.button("Generate!")):
14
+ text_ar = text_ar.replace("\n"," ")
15
  pairs = creator(text_ar)
16
  for pair in pairs:
17
+ st.text(pair)
18
+ st.success("Generated!")
19
+ with col3:
20
+ st.write(' ')
21
 
22
 
23