Spaces:
Runtime error
Runtime error
vinayakdev
commited on
Commit
•
c782bf6
1
Parent(s):
b55b921
add cols
Browse files
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 |
-
|
11 |
-
|
12 |
-
|
|
|
|
|
13 |
pairs = creator(text_ar)
|
14 |
for pair in pairs:
|
15 |
-
|
16 |
-
st.
|
|
|
|
|
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 |
|