Spaces:
Runtime error
Runtime error
Commit
·
04522f3
1
Parent(s):
eaaa349
indicator
Browse files
app.py
CHANGED
|
@@ -5,17 +5,19 @@ from generator import *
|
|
| 5 |
|
| 6 |
|
| 7 |
col1, col2, col3 = st.columns(3)
|
| 8 |
-
|
| 9 |
i = 0
|
| 10 |
with col1 :
|
| 11 |
st.write(' ')
|
| 12 |
with col2:
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
| 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 |
|