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