Tulika2000 commited on
Commit
7d0beb7
·
verified ·
1 Parent(s): 95ca539

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -85,15 +85,7 @@ def safety_advice(user_input, age_range):
85
  response = chain.run(user_input=user_input, age_range=age_range)
86
  links_html = get_youtube_links(age_range)
87
 
88
- # Wrapping the response and YouTube links in a box with styling
89
- formatted_response = f"""
90
- <div style='border: 2px solid #ccc; padding: 15px; border-radius: 8px; background-color: #f9f9f9;'>
91
- <div>{response}</div>
92
- <div>{links_html if links_html else 'No relevant videos found.'}</div>
93
- </div>
94
- """
95
-
96
- return formatted_response, links_html
97
 
98
  # Function to clear fields
99
  def clear_fields():
 
85
  response = chain.run(user_input=user_input, age_range=age_range)
86
  links_html = get_youtube_links(age_range)
87
 
88
+ return f"{response}", links_html # Markdown for text, HTML for videos
 
 
 
 
 
 
 
 
89
 
90
  # Function to clear fields
91
  def clear_fields():