Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
346 |
-
|
|
|
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 |
+
|