Spaces:
Runtime error
Runtime error
Kunaal Naik commited on
Commit ·
b70736e
1
Parent(s): 44a6949
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,11 +35,11 @@ target_audience = st.sidebar.text_input('Enter your target audience', value = 'p
|
|
| 35 |
target_course = st.sidebar.text_input('Enter your course name', value = 'Zero to Hero in PowerBI')
|
| 36 |
|
| 37 |
if st.sidebar.button("Get response"):
|
| 38 |
-
if target_audience and
|
| 39 |
with st.spinner("Generating response..."):
|
| 40 |
with st.expander("Show prompt", expanded=False):
|
| 41 |
st.info(prompt.template)
|
| 42 |
-
answer = chain.run({"target_audience": target_audience, "
|
| 43 |
|
| 44 |
# Split the 'answer' into sections based on the questions
|
| 45 |
sections = [section.strip() for section in answer.split("\n\n") if section.strip() != ""]
|
|
|
|
| 35 |
target_course = st.sidebar.text_input('Enter your course name', value = 'Zero to Hero in PowerBI')
|
| 36 |
|
| 37 |
if st.sidebar.button("Get response"):
|
| 38 |
+
if target_audience and target_course:
|
| 39 |
with st.spinner("Generating response..."):
|
| 40 |
with st.expander("Show prompt", expanded=False):
|
| 41 |
st.info(prompt.template)
|
| 42 |
+
answer = chain.run({"target_audience": target_audience, "target_course": target_course})
|
| 43 |
|
| 44 |
# Split the 'answer' into sections based on the questions
|
| 45 |
sections = [section.strip() for section in answer.split("\n\n") if section.strip() != ""]
|