Kunaal Naik commited on
Commit
b70736e
·
1 Parent(s): 44a6949

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 my_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, "my_course": my_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() != ""]
 
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() != ""]