mrbeliever commited on
Commit
92ff4de
·
verified ·
1 Parent(s): 86ba92c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -40,11 +40,7 @@ st.markdown(
40
  text-align: center;
41
  margin-bottom: 20px;
42
  }
43
- .button-container {
44
- display: flex;
45
- justify-content: center;
46
- margin-top: 20px;
47
- }
48
  </style>
49
  """,
50
  unsafe_allow_html=True
@@ -59,9 +55,8 @@ user_input = st.text_area(
59
  placeholder="e.g., Master AI For Future Jobs"
60
  )
61
 
62
- # Centered Generate Button with Logic
63
- st.markdown('<div class="button-container">', unsafe_allow_html=True)
64
- if st.button("<div class="button-container">Generate Titles</div>"):
65
  if user_input.strip():
66
  with st.spinner("Generating... Please wait!"):
67
  result = generate_response(user_input, API_KEY)
 
40
  text-align: center;
41
  margin-bottom: 20px;
42
  }
43
+
 
 
 
 
44
  </style>
45
  """,
46
  unsafe_allow_html=True
 
55
  placeholder="e.g., Master AI For Future Jobs"
56
  )
57
 
58
+
59
+ if st.button("Generate Titles", use_container_width=True):
 
60
  if user_input.strip():
61
  with st.spinner("Generating... Please wait!"):
62
  result = generate_response(user_input, API_KEY)