tmskss commited on
Commit
7de4f85
1 Parent(s): f21752f

Debug logs

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -423,8 +423,8 @@ def text_to_text_generation(verbose, prompt):
423
  res_semantic_search_prompt, res_semantic_search = cleanup(*gen_semantic_search)
424
  res_google_search_prompt, res_google_search = cleanup(*gen_google_search)
425
 
426
- print("GOOGLE SEARCH RES: ", res_google_search)
427
- print("SEMANTIC SEARCH RES: ", res_semantic_search)
428
 
429
  if verbose:
430
  return (
@@ -444,13 +444,13 @@ def text_to_text_generation(verbose, prompt):
444
  f"## Section 1: Preparing for generation\n"
445
  f"{res_semantic_search_md}\n"
446
  f"## Section 2: Generating answer\n"
447
- f"{str_to_md(res_semantic_search)}\n"
448
  f"--------------------------------------------\n"
449
  f"# Answer with Google search\n"
450
  f"## Section 1: Preparing for generation\n"
451
  f"{res_google_search_md}\n"
452
  f"## Section 2: Generating answer\n"
453
- f"{str_to_md(res_google_search)}\n"
454
  )
455
  else:
456
  return (
 
423
  res_semantic_search_prompt, res_semantic_search = cleanup(*gen_semantic_search)
424
  res_google_search_prompt, res_google_search = cleanup(*gen_google_search)
425
 
426
+ print("GOOGLE SEARCH RES: ", str_to_md(res_google_search))
427
+ print("SEMANTIC SEARCH RES: ", str_to_md(res_semantic_search))
428
 
429
  if verbose:
430
  return (
 
444
  f"## Section 1: Preparing for generation\n"
445
  f"{res_semantic_search_md}\n"
446
  f"## Section 2: Generating answer\n"
447
+ f"\n{str_to_md(res_semantic_search)}\n"
448
  f"--------------------------------------------\n"
449
  f"# Answer with Google search\n"
450
  f"## Section 1: Preparing for generation\n"
451
  f"{res_google_search_md}\n"
452
  f"## Section 2: Generating answer\n"
453
+ f"\n{str_to_md(res_google_search)}\n"
454
  )
455
  else:
456
  return (