joemama1805 commited on
Commit
d2c2cbc
·
verified ·
1 Parent(s): a76fdac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -11
app.py CHANGED
@@ -81,17 +81,6 @@ def generate_response(user_query, relevant_segment):
81
  frequency_penalty=0,
82
  presence_penalty=0
83
  )
84
- def get_sad_link_playlist(question):
85
- """
86
- Check if the question contains a keyword and return the corresponding Youtube link.
87
- """
88
- keyword_links = {
89
- "sad": "Here is a link to the sad playlist based on your response. Copy the link that will direct you to the playlist: https://youtube.com/playlist?list=PLPE5bssIbSTm3odLzXrlfCXnmpll8pqBu&si=49rIb3IwueIzKGif",
90
- }
91
-
92
- for keyword, link in keyword_links.items():
93
- if keyword in question.lower():
94
- return link
95
 
96
  # Extract the response text
97
  output_text = response['choices'][0]['message']['content'].strip()
 
81
  frequency_penalty=0,
82
  presence_penalty=0
83
  )
 
 
 
 
 
 
 
 
 
 
 
84
 
85
  # Extract the response text
86
  output_text = response['choices'][0]['message']['content'].strip()