Spaces:
Paused
Paused
Update output
Browse files
app.py
CHANGED
@@ -446,7 +446,7 @@ def text_to_text_generation(verbose, prompt):
|
|
446 |
f"--------------------------------------------\n"
|
447 |
f"# Answer with RAG\n"
|
448 |
f"## Section 1: Preparing for generation\n\n {res_semantic_search_md}\n"
|
449 |
-
f"## Section 2: Generating answer\n\n {res_semantic_search}\n"
|
450 |
f"--------------------------------------------\n"
|
451 |
f"# Answer with Google search\n"
|
452 |
f"## Section 1: Preparing for generation\n\n {res_google_search_md}\n"
|
@@ -460,7 +460,7 @@ def text_to_text_generation(verbose, prompt):
|
|
460 |
f"# Classified your prompt as:\n"
|
461 |
f"{modes}\n\n"
|
462 |
f"# Answer with finetuned model\n\n {str_to_md(res_normal)}\n"
|
463 |
-
f"# Answer with RAG\n\n {str_to_md(res_semantic_search)}\n"
|
464 |
f"# Answer with Google search\n\n {str_to_md(res_google_search)}"
|
465 |
)
|
466 |
|
|
|
446 |
f"--------------------------------------------\n"
|
447 |
f"# Answer with RAG\n"
|
448 |
f"## Section 1: Preparing for generation\n\n {res_semantic_search_md}\n"
|
449 |
+
f"## Section 2: Generating answer\n\n ##### {str_to_md(res_semantic_search)}\n"
|
450 |
f"--------------------------------------------\n"
|
451 |
f"# Answer with Google search\n"
|
452 |
f"## Section 1: Preparing for generation\n\n {res_google_search_md}\n"
|
|
|
460 |
f"# Classified your prompt as:\n"
|
461 |
f"{modes}\n\n"
|
462 |
f"# Answer with finetuned model\n\n {str_to_md(res_normal)}\n"
|
463 |
+
f"# Answer with RAG\n\n ##### {str_to_md(res_semantic_search)}\n"
|
464 |
f"# Answer with Google search\n\n {str_to_md(res_google_search)}"
|
465 |
)
|
466 |
|