wendru18 commited on
Commit
f3ae348
·
1 Parent(s): 8c33206

improved logging

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -210,6 +210,9 @@ def add_to_dict(title, url):
210
 
211
  def main(openAI_key, urls_text, question, split_by_topic, segment_length, n_neighbours, model, token_budget, temperature):
212
 
 
 
 
213
  set_openai_key(openAI_key)
214
 
215
  global titles_to_urls
@@ -237,6 +240,8 @@ def main(openAI_key, urls_text, question, split_by_topic, segment_length, n_neig
237
  print("Searcher fit successfully!")
238
  answer, references = generate_answer(question, model, token_budget, temperature)
239
 
 
 
240
  return answer, references
241
 
242
  title = "Ask YouTube GPT 📺"
 
210
 
211
  def main(openAI_key, urls_text, question, split_by_topic, segment_length, n_neighbours, model, token_budget, temperature):
212
 
213
+ print(question)
214
+ print(urls_text)
215
+
216
  set_openai_key(openAI_key)
217
 
218
  global titles_to_urls
 
240
  print("Searcher fit successfully!")
241
  answer, references = generate_answer(question, model, token_budget, temperature)
242
 
243
+ print(answer)
244
+
245
  return answer, references
246
 
247
  title = "Ask YouTube GPT 📺"