Spaces:
Runtime error
Runtime error
vinayakdev
commited on
Commit
•
35b864c
1
Parent(s):
f6aae11
Update app.py
Browse files
app.py
CHANGED
@@ -7,16 +7,17 @@ from generator import *
|
|
7 |
col1, col2, col3 = st.columns(3)
|
8 |
|
9 |
i = 0
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
st.
|
|
|
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 |
|