schennu commited on
Commit
e025cf2
·
verified ·
1 Parent(s): 6b3d386

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -27
app.py CHANGED
@@ -371,33 +371,6 @@ def get_result(user_prompt, age_group, zip_code, mobility, serper_api_key, opena
371
  )
372
 
373
  result = crew.kickoff
374
-
375
- # Debug: Log before extraction
376
- debug_expander.write("Debug: About to extract activity details...")
377
- # Parse the result to extract activity details
378
- activity_details = dummy_extract_activity_details(result)
379
-
380
- # More debugging info
381
- with debug_expander:
382
- st.write("Extracted activity details:")
383
- #st.json(activity_details)
384
-
385
- # Create WhatsApp sharing buttons for each activity
386
- if activity_details:
387
- st.subheader("Share Activities with Friends")
388
- # Debug: Log the number of activities found
389
-
390
- # Log number of activities
391
- with debug_expander:
392
- #st.write(f"Found {len(activity_details)} activities to share")
393
- st.write(f"Found 2 activities to share")
394
-
395
- for i, activity in enumerate(activity_details):
396
- # Log each activity being processed
397
- with debug_expander:
398
- st.write(f"Creating share button for activity {i+1}")
399
- create_whatsapp_share_button(activity, i+1)
400
-
401
  return result
402
 
403
 
@@ -779,6 +752,33 @@ with tab1:
779
  </div>
780
  </div>
781
  """, unsafe_allow_html=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
782
 
783
  # Optional: Get additional senior-specific tips
784
  if st.checkbox("Get additional wellness tips"):
 
371
  )
372
 
373
  result = crew.kickoff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
374
  return result
375
 
376
 
 
752
  </div>
753
  </div>
754
  """, unsafe_allow_html=True)
755
+
756
+
757
+ # Debug: Log before extraction
758
+ debug_expander.write("Debug: About to extract activity details...")
759
+ # Parse the result to extract activity details
760
+ activity_details = dummy_extract_activity_details(result)
761
+
762
+ # More debugging info
763
+ with debug_expander:
764
+ st.write("Extracted activity details:")
765
+ #st.json(activity_details)
766
+
767
+ # Create WhatsApp sharing buttons for each activity
768
+ if activity_details:
769
+ st.subheader("Share Activities with Friends")
770
+ # Debug: Log the number of activities found
771
+
772
+ # Log number of activities
773
+ with debug_expander:
774
+ #st.write(f"Found {len(activity_details)} activities to share")
775
+ st.write(f"Found 2 activities to share")
776
+
777
+ for i, activity in enumerate(activity_details):
778
+ # Log each activity being processed
779
+ with debug_expander:
780
+ st.write(f"Creating share button for activity {i+1}")
781
+ create_whatsapp_share_button(activity, i+1)
782
 
783
  # Optional: Get additional senior-specific tips
784
  if st.checkbox("Get additional wellness tips"):