Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,12 +77,22 @@ st.title("AI Based Domain Names Suggestion")
|
|
| 77 |
# Text box for user input
|
| 78 |
user_input = st.text_input("Type your idea here:")
|
| 79 |
|
| 80 |
-
# Button to submit input
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
if st.button("Submit"):
|
| 82 |
-
|
| 83 |
-
for item in print_output(user_input):
|
| 84 |
-
st.write(item)
|
| 85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
|
| 87 |
# def print_output(input):
|
| 88 |
# inputs = tokenizer(
|
|
|
|
| 77 |
# Text box for user input
|
| 78 |
user_input = st.text_input("Type your idea here:")
|
| 79 |
|
| 80 |
+
# # Button to submit input
|
| 81 |
+
# if st.button("Submit"):
|
| 82 |
+
# # Reprint the user input
|
| 83 |
+
# for item in print_output(user_input):
|
| 84 |
+
# st.write(item)
|
| 85 |
+
col1, col2 = st.columns(2)
|
| 86 |
+
|
| 87 |
+
# Loop through the output list and distribute items between the two columns
|
| 88 |
if st.button("Submit"):
|
| 89 |
+
output_list = print_output(user_input)
|
|
|
|
|
|
|
| 90 |
|
| 91 |
+
for i, item in enumerate(output_list):
|
| 92 |
+
if i % 2 == 0:
|
| 93 |
+
col1.write(item) # Even-indexed items in column 1
|
| 94 |
+
else:
|
| 95 |
+
col2.write(item) # Odd-indexed items in column 2
|
| 96 |
|
| 97 |
# def print_output(input):
|
| 98 |
# inputs = tokenizer(
|