vinayakdev commited on
Commit
35b864c
1 Parent(s): f6aae11

Update app.py

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