Spaces:
Paused
Paused
Update output, inline
Browse files
app.py
CHANGED
|
@@ -428,26 +428,22 @@ def text_to_text_generation(verbose, prompt):
|
|
| 428 |
f"# 📚KubeWizard📚\n"
|
| 429 |
f"#### A helpful Kubernetes Assistant powered by Component Soft\n"
|
| 430 |
f"--------------------------------------------\n"
|
| 431 |
-
f"# Classified your prompt as
|
| 432 |
f"{modes}\n\n"
|
| 433 |
f"--------------------------------------------\n"
|
| 434 |
-
f"# Answer with finetuned model
|
| 435 |
-
f"## Prompt given to the model
|
| 436 |
f"{str_to_md(res_prompt)}\n\n"
|
| 437 |
-
f"## Model's answer
|
| 438 |
f"{str_to_md(res_normal)}\n\n"
|
| 439 |
f"--------------------------------------------\n"
|
| 440 |
-
f"# Answer with RAG
|
| 441 |
-
f"## Section 1: Preparing for generation
|
| 442 |
-
f"{
|
| 443 |
-
f"## Section 2: Generating answer \n"
|
| 444 |
-
f"{str_to_md(res_semantic_search)} \n"
|
| 445 |
f"--------------------------------------------\n"
|
| 446 |
-
f"# Answer with Google search
|
| 447 |
-
f"## Section 1: Preparing for generation
|
| 448 |
-
f"{
|
| 449 |
-
f"## Section 2: Generating answer \n"
|
| 450 |
-
f"{str_to_md(res_google_search)} \n"
|
| 451 |
)
|
| 452 |
else:
|
| 453 |
return (
|
|
|
|
| 428 |
f"# 📚KubeWizard📚\n"
|
| 429 |
f"#### A helpful Kubernetes Assistant powered by Component Soft\n"
|
| 430 |
f"--------------------------------------------\n"
|
| 431 |
+
f"# Classified your prompt as:\n"
|
| 432 |
f"{modes}\n\n"
|
| 433 |
f"--------------------------------------------\n"
|
| 434 |
+
f"# Answer with finetuned model\n"
|
| 435 |
+
f"## Prompt given to the model:\n"
|
| 436 |
f"{str_to_md(res_prompt)}\n\n"
|
| 437 |
+
f"## Model's answer:\n"
|
| 438 |
f"{str_to_md(res_normal)}\n\n"
|
| 439 |
f"--------------------------------------------\n"
|
| 440 |
+
f"# Answer with RAG\n"
|
| 441 |
+
f"## Section 1: Preparing for generation\n\n {res_semantic_search_md}\n"
|
| 442 |
+
f"## Section 2: Generating answer\n\n {str_to_md(res_semantic_search)}\n"
|
|
|
|
|
|
|
| 443 |
f"--------------------------------------------\n"
|
| 444 |
+
f"# Answer with Google search\n"
|
| 445 |
+
f"## Section 1: Preparing for generation\n\n {res_google_search_md}\n"
|
| 446 |
+
f"## Section 2: Generating answer\n\n {str_to_md(res_google_search)}\n"
|
|
|
|
|
|
|
| 447 |
)
|
| 448 |
else:
|
| 449 |
return (
|