Karley8 commited on
Commit
8b629c2
Β·
verified Β·
1 Parent(s): 91cd739

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -342,8 +342,9 @@ if next_step == "πŸ” Continue researching (codes, build types, regulations)":
342
  st.markdown(response.choices[0].message.content.strip())
343
 
344
  st.markdown("##### πŸ’¬ Ask Your Own Research Question")
345
- user_question = st.text_input("What else would you like to learn about?")
346
- if st.button("Ask"):
 
347
  if user_question:
348
  with st.spinner("Getting the answer..."):
349
  response = client.chat.completions.create(
@@ -359,7 +360,6 @@ if next_step == "πŸ” Continue researching (codes, build types, regulations)":
359
  else:
360
  st.warning("Please type a question first.")
361
 
362
-
363
  # === Helpful Resource Links (shown no matter what) ===
364
  st.markdown("##### πŸ”— Helpful Resources")
365
  st.markdown("""
@@ -382,3 +382,4 @@ st.markdown("""
382
 
383
 
384
 
 
 
342
  st.markdown(response.choices[0].message.content.strip())
343
 
344
  st.markdown("##### πŸ’¬ Ask Your Own Research Question")
345
+ user_question = st.text_input("What else would you like to learn about?")
346
+
347
+ if st.button("Ask"):
348
  if user_question:
349
  with st.spinner("Getting the answer..."):
350
  response = client.chat.completions.create(
 
360
  else:
361
  st.warning("Please type a question first.")
362
 
 
363
  # === Helpful Resource Links (shown no matter what) ===
364
  st.markdown("##### πŸ”— Helpful Resources")
365
  st.markdown("""
 
382
 
383
 
384
 
385
+